[llvm-exegesis] Fix broken build.
authorGuillaume Chatelet <gchatelet@google.com>
Wed, 10 Oct 2018 10:09:42 +0000 (10:09 +0000)
committerGuillaume Chatelet <gchatelet@google.com>
Wed, 10 Oct 2018 10:09:42 +0000 (10:09 +0000)
llvm-svn: 344131

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

index d291ff7..2208e2a 100644 (file)
@@ -126,14 +126,11 @@ void UopsSnippetGenerator::instantiateMemoryOperands(
 
 llvm::Expected<CodeTemplate>
 UopsSnippetGenerator::generateCodeTemplate(unsigned Opcode) const {
-  const Instruction Instr(State.getInstrInfo().get(Opcode), RATC);
-  if (Instr.hasMemoryOperands())
-    return llvm::make_error<BenchmarkFailure>(
-        "Infeasible : has unknown operands");
   const auto &ET = State.getExegesisTarget();
   CodeTemplate CT;
 
   const llvm::BitVector *ScratchSpaceAliasedRegs = nullptr;
+  const Instruction Instr(State.getInstrInfo().get(Opcode), RATC);
   if (Instr.hasMemoryOperands()) {
     CT.ScratchSpacePointerInReg =
         ET.getScratchMemoryRegister(State.getTargetMachine().getTargetTriple());