File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
llvm/tools/llvm-exegesis/lib/Mips Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change 14
14
namespace llvm {
15
15
namespace exegesis {
16
16
17
+ #ifndef NDEBUG
17
18
// Returns an error if we cannot handle the memory references in this
18
19
// instruction.
19
20
static Error isInvalidMemoryInstr (const Instruction &Instr) {
20
21
switch (Instr.Description .TSFlags & MipsII::FormMask) {
21
22
default :
22
- return Error::success ();
23
23
llvm_unreachable (" Unknown FormMask value" );
24
24
// These have no memory access.
25
25
case MipsII::Pseudo:
@@ -36,6 +36,7 @@ static Error isInvalidMemoryInstr(const Instruction &Instr) {
36
36
return make_error<Failure>(" unsupported opcode: non uniform memory access" );
37
37
}
38
38
}
39
+ #endif
39
40
40
41
// Helper to fill a memory operand with a value.
41
42
static void setMemOp (InstructionTemplate &IT, int OpIdx,
You can’t perform that action at this time.
0 commit comments