[llvm] r204594 - [PowerPC] Don't schedule VSX copy legalization unless VSX is enabled
Hal Finkel
hfinkel at anl.gov
Mon Mar 24 02:51:42 PDT 2014
Author: hfinkel
Date: Mon Mar 24 04:51:41 2014
New Revision: 204594
URL: http://llvm.org/viewvc/llvm-project?rev=204594&view=rev
Log:
[PowerPC] Don't schedule VSX copy legalization unless VSX is enabled
There is no need to schedule this extra pass if it will have nothing to do.
Modified:
llvm/trunk/lib/Target/PowerPC/PPCTargetMachine.cpp
Modified: llvm/trunk/lib/Target/PowerPC/PPCTargetMachine.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/PowerPC/PPCTargetMachine.cpp?rev=204594&r1=204593&r2=204594&view=diff
==============================================================================
--- llvm/trunk/lib/Target/PowerPC/PPCTargetMachine.cpp (original)
+++ llvm/trunk/lib/Target/PowerPC/PPCTargetMachine.cpp Mon Mar 24 04:51:41 2014
@@ -160,7 +160,8 @@ bool PPCPassConfig::addInstSelector() {
addPass(createPPCCTRLoopsVerify());
#endif
- addPass(createPPCVSXCopyPass());
+ if (getPPCSubtarget().hasVSX())
+ addPass(createPPCVSXCopyPass());
return false;
}
More information about the llvm-commits
mailing list