[llvm] [DAG] Remove OneUse restriction on sext when folding (shl (sext (add_nsw x, c1)), c2) (PR #68972)
via llvm-commits
llvm-commits at lists.llvm.org
Sat Oct 14 21:19:34 PDT 2023
================
@@ -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
----------------
LiqinWeng wrote:
fixed
https://github.com/llvm/llvm-project/pull/68972
More information about the llvm-commits
mailing list