[clang] [llvm] [IRBuilder] ConstFold unary intrinsics (PR #200496)
Florian Hahn via cfe-commits
cfe-commits at lists.llvm.org
Sat May 30 14:43:18 PDT 2026
================
@@ -7,9 +7,7 @@ define void @test() {
; CHECK-NEXT: [[BB:.*]]:
; CHECK-NEXT: br label %[[BB8:.*]]
; CHECK: [[BB8]]:
-; CHECK-NEXT: [[PHI:%.*]] = phi i32 [ [[OP_RDX:%.*]], %[[BB8]] ], [ 0, %[[BB]] ]
-; CHECK-NEXT: [[TMP0:%.*]] = call i32 @llvm.vector.reduce.add.v4i32(<4 x i32> zeroinitializer)
----------------
fhahn wrote:
I suspect it would be good to make the inputs of some of the SLP tests more robust and avoid trivially simplifyable constructs, as the folding does not look like it was intended when the tests were written
https://github.com/llvm/llvm-project/pull/200496
More information about the cfe-commits
mailing list