diff options
Diffstat (limited to 'llvm/lib/Target/AArch64/AArch64PromoteConstant.cpp')
-rw-r--r-- | llvm/lib/Target/AArch64/AArch64PromoteConstant.cpp | 2 |
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) { |