[clang] [llvm] [IRBuilder] ConstFold unary intrinsics (PR #200496)

Ramkumar Ramachandra via cfe-commits cfe-commits at lists.llvm.org
Sat May 30 14:50:27 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)
----------------
artagnon wrote:

Hm, yes, I noticed, but wasn't sure why the tests were written this way, given that SLPVectorizer uses TargetFolder: probably an oversight, @alexey-bataev?

https://github.com/llvm/llvm-project/pull/200496


More information about the cfe-commits mailing list