[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.

llvm-svn: 204594
This commit is contained in:
Hal Finkel 2014-03-24 09:51:41 +00:00
parent 1847401332
commit 32854b0439
1 changed files with 2 additions and 1 deletions

View File

@ -160,7 +160,8 @@ bool PPCPassConfig::addInstSelector() {
addPass(createPPCCTRLoopsVerify());
#endif
addPass(createPPCVSXCopyPass());
if (getPPCSubtarget().hasVSX())
addPass(createPPCVSXCopyPass());
return false;
}