[llvm] [RISCV] Codegen support for XCVbi extension (PR #89719)
Craig Topper via llvm-commits
llvm-commits at lists.llvm.org
Wed Apr 24 20:47:19 PDT 2024
================
@@ -17665,8 +17668,9 @@ static MachineBasicBlock *emitSelectPseudo(MachineInstr &MI,
MachineInstr *LastSelectPseudo = &MI;
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() &&
+ if ((MI.getOpcode() != RISCV::Select_GPR_Using_CC_GPR ||
----------------
topperc wrote:
This should be `&&` not `||` I think.
https://github.com/llvm/llvm-project/pull/89719
More information about the llvm-commits
mailing list