[llvm] r344780 - [llvm-exegesis] Re-enable liveliness tracker.
Clement Courbet via llvm-commits
llvm-commits at lists.llvm.org
Fri Oct 19 05:08:06 PDT 2018
Author: courbet
Date: Fri Oct 19 05:08:05 2018
New Revision: 344780
URL: http://llvm.org/viewvc/llvm-project?rev=344780&view=rev
Log:
[llvm-exegesis] Re-enable liveliness tracker.
Reviewers: gchatelet
Subscribers: tschuett, llvm-commits
Differential Revision: https://reviews.llvm.org/D53429
Modified:
llvm/trunk/tools/llvm-exegesis/lib/Assembler.cpp
Modified: llvm/trunk/tools/llvm-exegesis/lib/Assembler.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/llvm-exegesis/lib/Assembler.cpp?rev=344780&r1=344779&r2=344780&view=diff
==============================================================================
--- llvm/trunk/tools/llvm-exegesis/lib/Assembler.cpp (original)
+++ llvm/trunk/tools/llvm-exegesis/lib/Assembler.cpp Fri Oct 19 05:08:05 2018
@@ -33,6 +33,7 @@ generateSnippetSetupCode(const ExegesisT
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 @@ void assembleToStream(const ExegesisTarg
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);
More information about the llvm-commits
mailing list