summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/ShrinkWrap.cpp
diff options
context:
space:
mode:
authorJun Bum Lim <junbuml@codeaurora.org>2018-04-03 18:17:34 +0000
committerJun Bum Lim <junbuml@codeaurora.org>2018-04-03 18:17:34 +0000
commit7ab1b32b5e51168fe4823378399c9b559a383f86 (patch)
tree533696cf19f82052eb09ffb49672f6851a7ee552 /llvm/lib/CodeGen/ShrinkWrap.cpp
parent2c5f94401565807a77f914875adeb9db7473ee73 (diff)
downloadbcm5719-llvm-7ab1b32b5e51168fe4823378399c9b559a383f86.tar.gz
bcm5719-llvm-7ab1b32b5e51168fe4823378399c9b559a383f86.zip
[CodeGen]Add NoVRegs property on PostRASink and ShrinkWrap
Summary: This change declare that PostRAMachineSinking and ShrinkWrap require NoVRegs property, so now the MachineFunctionPass can enforce this check. These passes are disabled in NVPTX & WebAssembly. Reviewers: dschuff, jlebar, tra, jgravelle-google, MatzeB, sebpop, thegameg, mcrosier Reviewed By: dschuff, thegameg Subscribers: jholewinski, jfb, sbc100, aheejin, sunfish, llvm-commits Differential Revision: https://reviews.llvm.org/D45183 llvm-svn: 329095
Diffstat (limited to 'llvm/lib/CodeGen/ShrinkWrap.cpp')
-rw-r--r--llvm/lib/CodeGen/ShrinkWrap.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/ShrinkWrap.cpp b/llvm/lib/CodeGen/ShrinkWrap.cpp
index 2d854d6b43f..eead5f8c139 100644
--- a/llvm/lib/CodeGen/ShrinkWrap.cpp
+++ b/llvm/lib/CodeGen/ShrinkWrap.cpp
@@ -219,6 +219,11 @@ public:
MachineFunctionPass::getAnalysisUsage(AU);
}
+ MachineFunctionProperties getRequiredProperties() const override {
+ return MachineFunctionProperties().set(
+ MachineFunctionProperties::Property::NoVRegs);
+ }
+
StringRef getPassName() const override { return "Shrink Wrapping analysis"; }
/// \brief Perform the shrink-wrapping analysis and update
OpenPOWER on IntegriCloud