[PATCH] D154947: [AArch64] Split lowerVectorFCMP combine

Amara Emerson via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Jul 11 12:44:09 PDT 2023


aemerson accepted this revision.
aemerson added a comment.

LGTM with nit.



================
Comment at: llvm/lib/Target/AArch64/GISel/AArch64PostLegalizerLowering.cpp:977-981
   Register RHS = MI.getOperand(3).getReg();
+  Register LHS = MI.getOperand(2).getReg();
+  Register Dst = MI.getOperand(0).getReg();
+  const auto Pred =
+      static_cast<CmpInst::Predicate>(MI.getOperand(1).getPredicate());
----------------
Could you re-order these into Dst. LHS then RHS. You can use `GFCmp` here to simplify accessing the regs and predicate.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D154947



More information about the llvm-commits mailing list