summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/PowerPC/PPCQPXLoadSplat.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/lib/Target/PowerPC/PPCQPXLoadSplat.cpp')
-rw-r--r--llvm/lib/Target/PowerPC/PPCQPXLoadSplat.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/lib/Target/PowerPC/PPCQPXLoadSplat.cpp b/llvm/lib/Target/PowerPC/PPCQPXLoadSplat.cpp
index e15751e444c..642b90e616d 100644
--- a/llvm/lib/Target/PowerPC/PPCQPXLoadSplat.cpp
+++ b/llvm/lib/Target/PowerPC/PPCQPXLoadSplat.cpp
@@ -60,6 +60,9 @@ FunctionPass *llvm::createPPCQPXLoadSplatPass() {
}
bool PPCQPXLoadSplat::runOnMachineFunction(MachineFunction &MF) {
+ if (skipFunction(*MF.getFunction()))
+ return false;
+
bool MadeChange = false;
const TargetRegisterInfo *TRI = MF.getSubtarget().getRegisterInfo();
OpenPOWER on IntegriCloud