[PATCH] D131358: [X86] (sext Cond) | C -> (zext (not Cond)) * (C + 1) - 1 if we can get a LEA out of it.

Amaury SECHET via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sun Aug 7 09:34:36 PDT 2022


deadalnix created this revision.
deadalnix added reviewers: RKSimon, spatel, gchatelet, lei, laytonio.
Herald added subscribers: pengfei, hiraditya.
Herald added a project: All.
deadalnix requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

This adresses various regression in D131260 <https://reviews.llvm.org/D131260> , as well as is a useful optimization in itself.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D131358

Files:
  llvm/lib/Target/X86/X86ISelLowering.cpp
  llvm/test/CodeGen/X86/or-lea.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D131358.450638.patch
Type: text/x-patch
Size: 3952 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220807/9bd490ef/attachment.bin>


More information about the llvm-commits mailing list