[llvm] [SCEVExpander] Don't try to reuse SCEVUnknown values (PR #115141)

Nikita Popov via llvm-commits llvm-commits at lists.llvm.org
Wed Nov 6 01:55:17 PST 2024


================
@@ -14,12 +14,14 @@ define i8 @widget(ptr %arr, i8 %t9) {
 ; CHECK-NEXT:    br i1 [[C]], label [[FOR_PREHEADER:%.*]], label [[BB6]]
 ; CHECK:       for.preheader:
 ; CHECK-NEXT:    [[T1_0_LCSSA:%.*]] = phi ptr [ [[T1_0]], [[BB6]] ]
+; CHECK-NEXT:    [[T1_0_LCSSA4:%.*]] = phi ptr [ [[T1_0]], [[BB6]] ]
+; CHECK-NEXT:    [[T1_0_LCSSA1:%.*]] = phi ptr [ [[T1_0]], [[BB6]] ]
----------------
nikic wrote:

Downside is that we might generate more LCSSA phis, but this seems like an independent SCEVExpander problem.

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


More information about the llvm-commits mailing list