================
@@ -89,6 +89,17 @@ RISCVInstrInfo::RISCVInstrInfo(const RISCVSubtarget &STI)
#define GET_INSTRINFO_HELPERS
#include "RISCVGenInstrInfo.inc"
+void RISCVInstrInfo::insertNoop(MachineBasicBlock &MBB,
+ MachineBasicBlock::iterator MI) const {
+ DebugLoc DL;
+ if (STI.hasStdExtZca())
+ BuildMI(MBB, MI, DL, get(RISCV::C_NOP));;
+ BuildMI(MBB, MI, DL, get(RISCV::ADDI))
----------------
wangpc-pp wrote:
else?
https://github.com/llvm/llvm-project/pull/170992
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits