summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/AArch64/AArch64PromoteConstant.cpp
diff options
context:
space:
mode:
authorAndrew Kaylor <andrew.kaylor@intel.com>2016-04-25 21:58:52 +0000
committerAndrew Kaylor <andrew.kaylor@intel.com>2016-04-25 21:58:52 +0000
commit1ac98bb088e1913b7e7f686b38bf5550f4eefa99 (patch)
tree44c3447298bdadbe710a886fc94fd7c592f9f14b /llvm/lib/Target/AArch64/AArch64PromoteConstant.cpp
parenta32532bfa5015a4de6586793fd8ffd667e779a4f (diff)
downloadbcm5719-llvm-1ac98bb088e1913b7e7f686b38bf5550f4eefa99.tar.gz
bcm5719-llvm-1ac98bb088e1913b7e7f686b38bf5550f4eefa99.zip
Add optimization bisect opt-in calls for AArch64 passes
Differential Revision: http://reviews.llvm.org/D19394 llvm-svn: 267479
Diffstat (limited to 'llvm/lib/Target/AArch64/AArch64PromoteConstant.cpp')
-rw-r--r--llvm/lib/Target/AArch64/AArch64PromoteConstant.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/Target/AArch64/AArch64PromoteConstant.cpp b/llvm/lib/Target/AArch64/AArch64PromoteConstant.cpp
index f51660223ba..e8e9947b078 100644
--- a/llvm/lib/Target/AArch64/AArch64PromoteConstant.cpp
+++ b/llvm/lib/Target/AArch64/AArch64PromoteConstant.cpp
@@ -109,6 +109,8 @@ public:
/// global variables with module scope.
bool runOnModule(Module &M) override {
DEBUG(dbgs() << getPassName() << '\n');
+ if (skipModule(M))
+ return false;
bool Changed = false;
PromotionCacheTy PromotionCache;
for (auto &MF : M) {
OpenPOWER on IntegriCloud