[PATCH] D122482: [X86] combineADC - fold ADC(C1,C2,Carry) -> ADC(0,C1+C2,Carry)
Simon Pilgrim via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sun Mar 27 10:49:54 PDT 2022
RKSimon added inline comments.
================
Comment at: llvm/test/CodeGen/X86/combine-adc.ll:88
; X64-NEXT: addb $-1, %dil
-; X64-NEXT: movl $55, %eax
-; X64-NEXT: adcl $-1, %eax
+; X64-NEXT: adcl $54, %eax
; X64-NEXT: retq
----------------
craig.topper wrote:
> This still seems more complicated that it needs to be.
Yes combineCarryThroughADD is missing a fold to X86ISD::BT, its on my todo list.......
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D122482/new/
https://reviews.llvm.org/D122482
More information about the llvm-commits
mailing list