[PATCH] D127871: [RISCV] Optimize 2x SELECT for floating-point types

Craig Topper via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sat Jul 9 13:26:39 PDT 2022


craig.topper added inline comments.


================
Comment at: llvm/lib/Target/RISCV/RISCVISelLowering.cpp:9857
+      Next->getOpcode() == MI.getOpcode() &&
+      Next->getOperand(2).getReg() == MI.getOperand(2).getReg() &&
+      Next->getOperand(5).getReg() == MI.getOperand(0).getReg() &&
----------------
I don't understand the new check. Why was it wrong to optimize 1.1 and 2.1 in the failed case?


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D127871



More information about the llvm-commits mailing list