[llvm] [DAG] Remove OneUse restriction on sext when folding (shl (sext (add_nsw x, c1)), c2) (PR #68972)
Simon Pilgrim via llvm-commits
llvm-commits at lists.llvm.org
Mon Aug 5 08:21:19 PDT 2024
================
@@ -21,10 +21,11 @@ define i32 @PR65895() {
; CHECK-NEXT: # =>This Inner Loop Header: Depth=1
; CHECK-NEXT: jmp .LBB0_2
; CHECK-NEXT: .LBB0_3: # %for.end
+; CHECK-NEXT: movzbl %al, %ecx
; CHECK-NEXT: addb $-3, %al
; CHECK-NEXT: movsbl %al, %eax
; CHECK-NEXT: movl %eax, d(%rip)
-; CHECK-NEXT: leal 247(%rax,%rax,2), %eax
+; CHECK-NEXT: leal 241(%rax,%rcx,2), %eax
----------------
RKSimon wrote:
Regression still needs fixing
https://github.com/llvm/llvm-project/pull/68972
More information about the llvm-commits
mailing list