[llvm] [DAGCombine] `visitANY_EXTEND` - fold `(aext (freeze (load x)))` -> `(aext (truncate (freeze (extload x))))` (PR #218454)

via llvm-commits llvm-commits at lists.llvm.org
Fri Sep 25 04:09:33 PDT 2026


================
@@ -37,8 +37,8 @@ define i8 @test_i8(i8 %a) nounwind {
 define i16 @test_i16(i16 %a) nounwind {
 ; X86-NO-CMOV-LABEL: test_i16:
 ; X86-NO-CMOV:       # %bb.0:
-; X86-NO-CMOV-NEXT:    movswl {{[0-9]+}}(%esp), %eax
-; X86-NO-CMOV-NEXT:    movl %eax, %ecx
+; X86-NO-CMOV-NEXT:    movl {{[0-9]+}}(%esp), %eax
+; X86-NO-CMOV-NEXT:    movswl %ax, %ecx
----------------
VachanVY wrote:

> @VachanVY any luck?

PR #226208 tries to fix this regression, ping for review

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


More information about the llvm-commits mailing list