forked from OSchip/llvm-project
[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:
parent
1847401332
commit
32854b0439
|
@ -160,7 +160,8 @@ bool PPCPassConfig::addInstSelector() {
|
|||
addPass(createPPCCTRLoopsVerify());
|
||||
#endif
|
||||
|
||||
addPass(createPPCVSXCopyPass());
|
||||
if (getPPCSubtarget().hasVSX())
|
||||
addPass(createPPCVSXCopyPass());
|
||||
|
||||
return false;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue