[llvm] r344131 - [llvm-exegesis] Fix broken build.

Guillaume Chatelet via llvm-commits llvm-commits at lists.llvm.org
Wed Oct 10 03:09:43 PDT 2018


Author: gchatelet
Date: Wed Oct 10 03:09:42 2018
New Revision: 344131

URL: http://llvm.org/viewvc/llvm-project?rev=344131&view=rev
Log:
[llvm-exegesis] Fix broken build.

Modified:
    llvm/trunk/tools/llvm-exegesis/lib/Uops.cpp

Modified: llvm/trunk/tools/llvm-exegesis/lib/Uops.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/llvm-exegesis/lib/Uops.cpp?rev=344131&r1=344130&r2=344131&view=diff
==============================================================================
--- llvm/trunk/tools/llvm-exegesis/lib/Uops.cpp (original)
+++ llvm/trunk/tools/llvm-exegesis/lib/Uops.cpp Wed Oct 10 03:09:42 2018
@@ -126,14 +126,11 @@ void UopsSnippetGenerator::instantiateMe
 
 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());




More information about the llvm-commits mailing list