summaryrefslogtreecommitdiffstats
path: root/llvm/tools/llvm-exegesis/lib/LlvmState.cpp
diff options
context:
space:
mode:
authorGuillaume Chatelet <gchatelet@google.com>2018-10-10 14:22:48 +0000
committerGuillaume Chatelet <gchatelet@google.com>2018-10-10 14:22:48 +0000
commitee9c2a17b823fe9c375002b4bec9ce989f5c66f5 (patch)
treeed700f70d8ea65a7b4fc90d34d9b5e406a3e5cbd /llvm/tools/llvm-exegesis/lib/LlvmState.cpp
parent07acc992dc39edfccc5a4b773c3dcf8a5bf6d893 (diff)
downloadbcm5719-llvm-ee9c2a17b823fe9c375002b4bec9ce989f5c66f5.tar.gz
bcm5719-llvm-ee9c2a17b823fe9c375002b4bec9ce989f5c66f5.zip
[llvm-exegesis][NFC] Code simplification
Summary: Simplify code by having LLVMState hold the RegisterAliasingTrackerCache. Reviewers: courbet Subscribers: tschuett, llvm-commits Differential Revision: https://reviews.llvm.org/D53078 llvm-svn: 344143
Diffstat (limited to 'llvm/tools/llvm-exegesis/lib/LlvmState.cpp')
-rw-r--r--llvm/tools/llvm-exegesis/lib/LlvmState.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/tools/llvm-exegesis/lib/LlvmState.cpp b/llvm/tools/llvm-exegesis/lib/LlvmState.cpp
index 9ff42ca71fd..279792e9031 100644
--- a/llvm/tools/llvm-exegesis/lib/LlvmState.cpp
+++ b/llvm/tools/llvm-exegesis/lib/LlvmState.cpp
@@ -35,6 +35,8 @@ LLVMState::LLVMState(const std::string &Triple, const std::string &CpuName) {
llvm::errs() << "no exegesis target for " << Triple << ", using default\n";
TheExegesisTarget = &ExegesisTarget::getDefault();
}
+ RATC.reset(new RegisterAliasingTrackerCache(
+ getRegInfo(), getFunctionReservedRegs(getTargetMachine())));
}
LLVMState::LLVMState()
OpenPOWER on IntegriCloud