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

Amara Emerson via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Nov 12 09:48:52 PST 2020


aemerson accepted this revision.
aemerson added a comment.
This revision is now accepted and ready to land.

LGTM with nit.



================
Comment at: llvm/lib/Target/AArch64/GISel/AArch64InstructionSelector.cpp:1023
+  // able to import these.
+  auto TryOptSelectCst = [&Opc, &True, &False, &CC, &Is32Bit, &MRI]() {
+    auto TrueCst = getConstantVRegValWithLookThrough(True, MRI);
----------------
Don't need to capture Is32Bit by ref.


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

https://reviews.llvm.org/D90701



More information about the llvm-commits mailing list