[llvm] [VPlan] Add initial CFG simplification, removing BranchOnCond true. (PR #106748)

via llvm-commits llvm-commits at lists.llvm.org
Thu Feb 20 01:27:56 PST 2025


================
@@ -50,12 +50,6 @@ define void @test_widen(ptr noalias %a, ptr readnone %b) #4 {
 ;
 ; TFCOMMON-LABEL: @test_widen(
 ; TFCOMMON-NEXT:  entry:
-; TFCOMMON-NEXT:    [[TMP0:%.*]] = call i64 @llvm.vscale.i64()
-; TFCOMMON-NEXT:    [[TMP1:%.*]] = mul i64 [[TMP0]], 2
-; TFCOMMON-NEXT:    [[TMP2:%.*]] = sub i64 [[TMP1]], 1
-; TFCOMMON-NEXT:    [[N_RND_UP:%.*]] = add i64 1025, [[TMP2]]
-; TFCOMMON-NEXT:    [[N_MOD_VF:%.*]] = urem i64 [[N_RND_UP]], [[TMP1]]
-; TFCOMMON-NEXT:    [[N_VEC:%.*]] = sub i64 [[N_RND_UP]], [[N_MOD_VF]]
----------------
ayalz wrote:

How/Is this (and similar discardings below) related to eliminating branch-on-true?

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


More information about the llvm-commits mailing list