[PATCH] D53429: [llvm-exegesis] Re-enable liveliness tracker.

Clement Courbet via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Oct 19 05:11:14 PDT 2018


This revision was automatically updated to reflect the committed changes.
Closed by commit rL344780: [llvm-exegesis] Re-enable liveliness tracker. (authored by courbet, committed by ).

Repository:
  rL LLVM

https://reviews.llvm.org/D53429

Files:
  llvm/trunk/tools/llvm-exegesis/lib/Assembler.cpp


Index: llvm/trunk/tools/llvm-exegesis/lib/Assembler.cpp
===================================================================
--- llvm/trunk/tools/llvm-exegesis/lib/Assembler.cpp
+++ llvm/trunk/tools/llvm-exegesis/lib/Assembler.cpp
@@ -33,6 +33,7 @@
                          const llvm::MCSubtargetInfo *const MSI,
                          llvm::ArrayRef<RegisterValue> RegisterInitialValues,
                          bool &IsSnippetSetupComplete) {
+  IsSnippetSetupComplete = true;
   std::vector<llvm::MCInst> Result;
   for (const RegisterValue &RV : RegisterInitialValues) {
     // Load a constant in the register.
@@ -170,7 +171,7 @@
   for (const unsigned Reg : LiveIns)
     MF.getRegInfo().addLiveIn(Reg);
 
-  bool IsSnippetSetupComplete = false;
+  bool IsSnippetSetupComplete;
   std::vector<llvm::MCInst> Code =
       generateSnippetSetupCode(ET, TM->getMCSubtargetInfo(),
                                RegisterInitialValues, IsSnippetSetupComplete);


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D53429.170185.patch
Type: text/x-patch
Size: 969 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20181019/c82d5e57/attachment.bin>


More information about the llvm-commits mailing list