[PATCH] D141113: Improve mul 2^N +/- 2 pattern
Simon Pilgrim via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Jan 6 03:10:49 PST 2023
RKSimon accepted this revision.
RKSimon added a comment.
This revision is now accepted and ready to land.
LGTM - cheers
================
Comment at: llvm/test/CodeGen/X86/mul-constant-result.ll:166-175
+; X86-NEXT: .cfi_def_cfa_offset 8
+; X86-NEXT: leal (%eax,%eax), %ecx
+; X86-NEXT: shll $5, %eax
+; X86-NEXT: .LBB0_23:
+; X86-NEXT: subl %ecx, %eax
+; X86-NEXT: popl %esi
+; X86-NEXT: .cfi_def_cfa_offset 4
----------------
pengfei wrote:
> Regression?
The increase in lines seems to be due to extra labels/cfi-directives - tbh I'd take the extra LEA if we reduce control flow instructions.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D141113/new/
https://reviews.llvm.org/D141113
More information about the llvm-commits
mailing list