[llvm] [RISCV] Codegen support for XCVbi extension (PR #89719)

Craig Topper via llvm-commits llvm-commits at lists.llvm.org
Wed Apr 24 15:27:36 PDT 2024


================
@@ -17741,7 +17749,7 @@ static MachineBasicBlock *emitSelectPseudo(MachineInstr &MI,
   auto InsertionPoint = TailMBB->begin();
   while (SelectMBBI != SelectEnd) {
     auto Next = std::next(SelectMBBI);
-    if (isSelectPseudo(*SelectMBBI)) {
+    if (isSelectPseudo(*SelectMBBI) || MI.getOperand(2).isImm()) {
----------------
topperc wrote:

Can you explain this change? There are no other references to MI in this loop so I'm not sure what MI's operand has to do with anything.

https://github.com/llvm/llvm-project/pull/89719


More information about the llvm-commits mailing list