[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
Tue Oct 11 11:15:24 PDT 2022


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

- simplify comment
- use captured `NeedsNot`
- support vector case + add test


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/CodeGen/TargetLowering.h
  llvm/include/llvm/Target/GlobalISel/Combine.td
  llvm/lib/CodeGen/GlobalISel/CombinerHelper.cpp
  llvm/lib/Target/AArch64/AArch64ISelLowering.h
  llvm/test/CodeGen/AArch64/combine-select-to-and-shift.mir

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D135633.466871.patch
Type: text/x-patch
Size: 16049 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20221011/039477b9/attachment.bin>


More information about the llvm-commits mailing list