Files
RedBear-OS/local/recipes/dev/libclc/source/polly/test/CodeGen/conflict-between-loop-invariant-code-hosting-and-escape-map-computation.ll
T
vasilito cb424d7448 build: static patch-sanity linter (shift-left the malformed-patch class)
verify-patch-sanity.py validates every active recipe .patch has internally-
consistent hunk line counts — catching the 'malformed patch at line N' failure
at commit/CI/preflight time instead of hours into a cook. This cycle hit that
class three times (qtwaylandscanner, sddm, xwayland), each only discovered when
cookbook tried to apply the patch.

Running it across the repo found 29 latent malformed patches (validated against
GNU patch: e.g. relibc/P3-sysv-ipc reproduces 'malformed patch at line 22').
They were harmless only because they sit in vendored recipes (baked, not re-
applied) — but would fail on any version-bump re-derivation. --fix recounts the
hunk headers (body untouched) and repaired all 29.

Wired into build-preflight.sh (Phase 1.0D) and redbear-ci.yml, with a unit test
(test-patch-sanity.sh). Skips archived/legacy trees and unvalidatable formats
(empty placeholders, bare-@@ git hunks).
2026-08-01 05:13:02 +03:00

47 lines
1.7 KiB
LLVM

; RUN: opt %loadNPMPolly -polly-process-unprofitable -passes=polly-codegen -disable-output < %s
;
; CHECK: store i32 %tmp14_p_scalar_, ptr %tmp14.s2a
; CHECK: %tmp14.final_reload = load i32, ptr %tmp14.s2a
; CHECK: %tmp17b.final_reload = load i32, ptr %tmp17b.preload.s2a
; CHECK: %tmp17.final_reload = load i32, ptr %tmp17.preload.s2a
;
target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
; Function Attrs: nounwind uwtable
define void @hoge(ptr %arg, i32 %arg4) #0 {
bb:
br label %bb5
bb5: ; preds = %bb
br i1 undef, label %bb6, label %bb18
bb6: ; preds = %bb5
%tmp8 = getelementptr inbounds i8, ptr %arg, i64 4
%tmp9 = getelementptr inbounds i8, ptr %tmp8, i64 20
br label %bb10
bb10: ; preds = %bb10, %bb6
%tmp11 = phi i32 [ %tmp12, %bb10 ], [ 2, %bb6 ]
%tmp12 = add nuw nsw i32 %tmp11, 1
br i1 false, label %bb10, label %bb13
bb13: ; preds = %bb10
%tmp14 = load i32, ptr %tmp9, align 4
%tmp15 = getelementptr inbounds i8, ptr %tmp9, i64 4
%tmp17 = load i32, ptr %tmp15, align 4
store i32 %tmp17, ptr %tmp9, align 4
%tmp15b = getelementptr inbounds i8, ptr %tmp9, i64 8
%tmp17b = load i32, ptr %tmp15b, align 4
store i32 %tmp17b, ptr %tmp9, align 4
br label %bb19
bb18: ; preds = %bb5
br label %bb19
bb19: ; preds = %bb18, %bb13
%tmp20 = phi i32 [ %tmp14, %bb13 ], [ %arg4, %bb18 ]
%tmp21 = phi i32 [ %tmp17, %bb13 ], [ %arg4, %bb18 ]
%tmp22 = phi i32 [ %tmp17b, %bb13 ], [ %arg4, %bb18 ]
unreachable
}