[PATCH] D127871: [RISCV] Optimize 2x SELECT for floating-point types
Craig Topper via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Jul 7 17:13:24 PDT 2022
craig.topper added inline comments.
================
Comment at: llvm/lib/Target/RISCV/RISCVISelLowering.cpp:9855
+ auto Next = next_nodbg(MI.getIterator(), BB->instr_end());
+ if (MI.getOpcode() != RISCV::Select_GPR_Using_CC_GPR && Next != BB->end() &&
+ Next->getOpcode() == MI.getOpcode() &&
----------------
I think we also need to make sure the condition for the second select doesn't use the output from the first select.
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