[PATCH] D90701: [AArch64][GlobalISel] Select CSINC and CSINV for G_SELECT with constants

Jessica Paquette via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Nov 11 10:53:55 PST 2020


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

- Explicitly capture variables in the lambda
- Add an assert that checks that the true/false values for the G_SELECT have the same register bank
- Rename the `CSel` variable to `SelectInst`, since it's not always going to be a CSel.


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

https://reviews.llvm.org/D90701

Files:
  llvm/lib/Target/AArch64/GISel/AArch64InstructionSelector.cpp
  llvm/test/CodeGen/AArch64/GlobalISel/opt-fold-compare.mir
  llvm/test/CodeGen/AArch64/GlobalISel/select-select.mir

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D90701.304586.patch
Type: text/x-patch
Size: 27862 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20201111/ee8bf3d7/attachment.bin>


More information about the llvm-commits mailing list