Files
RedBear-OS/local/recipes/dev/libclc/source/polly/test/CodeGen/non-affine-phi-node-expansion.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

57 lines
1.7 KiB
LLVM

; RUN: opt %loadNPMPolly -passes=polly-codegen \
; RUN: -S < %s | FileCheck %s
target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
%struct.wombat = type {[4 x i32]}
; CHECK-NOT: polly.preload.begin:
; CHECK-NOT: %polly.access.B
; CHECK-NOT: %polly.access.B.load
; CHECK: polly.split_new_and_old
; CHECK: polly.stmt.bb3.entry: ; preds = %polly.start
; CHECK: br label %polly.stmt.bb3
; CHECK: polly.stmt.bb3: ; preds = %polly.stmt.bb3.entry
; CHECK: br i1 true, label %polly.stmt.bb4, label %polly.stmt.bb5
; CHECK: polly.stmt.bb4: ; preds = %polly.stmt.bb3
; CHECK: br label %polly.stmt.bb13.exit
; CHECK: polly.stmt.bb5: ; preds = %polly.stmt.bb3
; CHECK: load i32, ptr %B
; Function Attrs: nounwind uwtable
define void @quux(ptr %arg, ptr %B) {
bb:
br i1 undef, label %bb2, label %bb1
bb1: ; preds = %bb
br label %bb2
bb2: ; preds = %bb1, %bb
%tmp = phi i1 [ true, %bb ], [ poison, %bb1 ]
br label %bb3
bb3: ; preds = %bb13, %bb2
br i1 %tmp, label %bb4, label %bb5
bb4: ; preds = %bb3
br label %bb13
bb5: ; preds = %bb3
%tmp7 = load i32, ptr %B
store i32 %tmp7, ptr %arg
br label %bb13
bb13: ; preds = %bb5, %bb4
br i1 false, label %bb3, label %bb14
bb14: ; preds = %bb13
br label %bb15
bb15: ; preds = %bb14
ret void
}