[llvm] r232876 - Simplify the query for a subtarget in the NVPTX pass manager.
Eric Christopher
echristo at gmail.com
Fri Mar 20 20:13:03 PDT 2015
Author: echristo
Date: Fri Mar 20 22:13:03 2015
New Revision: 232876
URL: http://llvm.org/viewvc/llvm-project?rev=232876&view=rev
Log:
Simplify the query for a subtarget in the NVPTX pass manager.
Modified:
llvm/trunk/lib/Target/NVPTX/NVPTXTargetMachine.cpp
Modified: llvm/trunk/lib/Target/NVPTX/NVPTXTargetMachine.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/NVPTX/NVPTXTargetMachine.cpp?rev=232876&r1=232875&r2=232876&view=diff
==============================================================================
--- llvm/trunk/lib/Target/NVPTX/NVPTXTargetMachine.cpp (original)
+++ llvm/trunk/lib/Target/NVPTX/NVPTXTargetMachine.cpp Fri Mar 20 22:13:03 2015
@@ -186,8 +186,7 @@ void NVPTXPassConfig::addIRPasses() {
}
bool NVPTXPassConfig::addInstSelector() {
- const NVPTXSubtarget &ST =
- getTM<NVPTXTargetMachine>().getSubtarget<NVPTXSubtarget>();
+ const NVPTXSubtarget &ST = *getTM<NVPTXTargetMachine>().getSubtargetImpl();
addPass(createLowerAggrCopies());
addPass(createAllocaHoisting());
More information about the llvm-commits
mailing list