diff --git a/llvm/tools/llvm-exegesis/lib/RISCV/Target.cpp b/llvm/tools/llvm-exegesis/lib/RISCV/Target.cpp index d55db9af8a9bd84..217b423d7b3f33a 100644 --- a/llvm/tools/llvm-exegesis/lib/RISCV/Target.cpp +++ b/llvm/tools/llvm-exegesis/lib/RISCV/Target.cpp @@ -122,6 +122,10 @@ class ExegesisRISCVTarget : public ExegesisTarget { ArrayRef getUnavailableRegisters() const override; + bool allowAsBackToBack(const Instruction &Instr) const override { + return !Instr.Description.isPseudo(); + } + Error randomizeTargetMCOperand(const Instruction &Instr, const Variable &Var, MCOperand &AssignedValue, const BitVector &ForbiddenRegs) const override;