[llvm] [DAG] Remove OneUse restriction when folding (shl (add x, c1), c2) (PR #69105)
Wang Pengcheng via llvm-commits
llvm-commits at lists.llvm.org
Sun Oct 15 20:27:57 PDT 2023
================
@@ -249,27 +249,28 @@ entry:
define i32 @multiuse(i32 %i, ptr %x, ptr %y) {
; CHECK-T1-LABEL: multiuse:
; CHECK-T1: @ %bb.0: @ %entry
+; CHECK-T1-NEXT: lsls r2, r0, #3
+; CHECK-T1-NEXT: adds r1, r1, r2
+; CHECK-T1-NEXT: ldr r1, [r1, #4]
----------------
wangpc-pp wrote:
Is this a regression?
https://github.com/llvm/llvm-project/pull/69105
More information about the llvm-commits
mailing list