[PATCH] D135633: [GlobalISel] Combine things like (z = x <= 0 ? z = x : z = 0) -> x & (x >> bw-1)

Jessica Paquette via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Oct 13 13:58:15 PDT 2022


paquette updated this revision to Diff 467598.
paquette added a comment.

Split into two combines to avoid the hook. The "and-not" combine is now opt-in by the target.


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D135633/new/

https://reviews.llvm.org/D135633

Files:
  llvm/include/llvm/CodeGen/GlobalISel/CombinerHelper.h
  llvm/include/llvm/Target/GlobalISel/Combine.td
  llvm/lib/CodeGen/GlobalISel/CombinerHelper.cpp
  llvm/lib/Target/AArch64/AArch64Combine.td
  llvm/test/CodeGen/AArch64/combine-select-to-and-shift.mir

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D135633.467598.patch
Type: text/x-patch
Size: 17346 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20221013/7db87097/attachment-0001.bin>


More information about the llvm-commits mailing list