summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/AMDGPU/SIShrinkInstructions.cpp
diff options
context:
space:
mode:
authorAndrew Kaylor <andrew.kaylor@intel.com>2016-04-25 22:23:44 +0000
committerAndrew Kaylor <andrew.kaylor@intel.com>2016-04-25 22:23:44 +0000
commit7de74af929cc9549375950bd0c56c236260f59f6 (patch)
treea6b61cd20864d85d5a22480562b2b780578b425e /llvm/lib/Target/AMDGPU/SIShrinkInstructions.cpp
parent9bbda191baff3d24a6ae799991e084e701434c97 (diff)
downloadbcm5719-llvm-7de74af929cc9549375950bd0c56c236260f59f6.tar.gz
bcm5719-llvm-7de74af929cc9549375950bd0c56c236260f59f6.zip
Add optimization bisect opt-in calls for AMDGPU passes
Differential Revision: http://reviews.llvm.org/D19450 llvm-svn: 267485
Diffstat (limited to 'llvm/lib/Target/AMDGPU/SIShrinkInstructions.cpp')
-rw-r--r--llvm/lib/Target/AMDGPU/SIShrinkInstructions.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/lib/Target/AMDGPU/SIShrinkInstructions.cpp b/llvm/lib/Target/AMDGPU/SIShrinkInstructions.cpp
index 346488d38e2..912ac503664 100644
--- a/llvm/lib/Target/AMDGPU/SIShrinkInstructions.cpp
+++ b/llvm/lib/Target/AMDGPU/SIShrinkInstructions.cpp
@@ -203,6 +203,9 @@ static bool isKImmOperand(const SIInstrInfo *TII, const MachineOperand &Src) {
}
bool SIShrinkInstructions::runOnMachineFunction(MachineFunction &MF) {
+ if (skipFunction(*MF.getFunction()))
+ return false;
+
MachineRegisterInfo &MRI = MF.getRegInfo();
const SIInstrInfo *TII =
static_cast<const SIInstrInfo *>(MF.getSubtarget().getInstrInfo());
OpenPOWER on IntegriCloud