Skip to content

Commit 10d4f37

Browse files
Addressing review comments
1 parent 3d4fba7 commit 10d4f37

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

llvm/tools/llvm-exegesis/lib/RISCV/Target.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -375,9 +375,13 @@ void ExegesisRISCVTarget::processInstructionReservedRegs(
375375

376376
switch (IT.getOpcode()) {
377377
case RISCV::C_ADDI16SP:
378+
case RISCV::C_ADDI4SPN:
378379
AssignedValue = MCOperand::createReg(RISCV::X2);
379380
break;
380381
case RISCV::C_ADDI_NOP:
382+
case RISCV::C_LI_HINT:
383+
case RISCV::C_LUI_HINT:
384+
case RISCV::C_MV_HINT:
381385
case RISCV::C_ADD_HINT:
382386
case RISCV::C_SLLI_HINT:
383387
AssignedValue = MCOperand::createReg(RISCV::X0);

llvm/tools/llvm-exegesis/lib/SerialSnippetGenerator.cpp

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -57,12 +57,6 @@ computeAliasingInstructions(const LLVMState &State, const Instruction *Instr,
5757
continue;
5858
const Instruction &OtherInstr = State.getIC().getInstr(OtherOpcode);
5959
const MCInstrDesc &OtherInstrDesc = OtherInstr.Description;
60-
// Ignore instructions that we cannot run.
61-
if (OtherInstrDesc.isPseudo() || OtherInstrDesc.usesCustomInsertionHook() ||
62-
OtherInstrDesc.isBranch() || OtherInstrDesc.isIndirectBranch() ||
63-
OtherInstrDesc.isCall() || OtherInstrDesc.isReturn()) {
64-
continue;
65-
}
6660
if (OtherInstr.hasMemoryOperands())
6761
continue;
6862
if (!ET.allowAsBackToBack(OtherInstr))

0 commit comments

Comments
 (0)