summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/IfConversion.cpp
diff options
context:
space:
mode:
authorDerek Schuff <dschuff@google.com>2016-04-04 17:09:25 +0000
committerDerek Schuff <dschuff@google.com>2016-04-04 17:09:25 +0000
commit1dbf7a571f39c07d8c301ffa29bb9c27d8417539 (patch)
tree1112ae62d73ab1c5efa0b5b0cd4f15335c6cae5b /llvm/lib/CodeGen/IfConversion.cpp
parentcdaf1df6579f0b932db4f4a29b176bab74305ae5 (diff)
downloadbcm5719-llvm-1dbf7a571f39c07d8c301ffa29bb9c27d8417539.tar.gz
bcm5719-llvm-1dbf7a571f39c07d8c301ffa29bb9c27d8417539.zip
Add MachineFunctionProperty checks for AllVRegsAllocated for target passes
Summary: This adds the same checks that were added in r264593 to all target-specific passes that run after register allocation. Reviewers: qcolombet Subscribers: jyknight, dsanders, llvm-commits Differential Revision: http://reviews.llvm.org/D18525 llvm-svn: 265313
Diffstat (limited to 'llvm/lib/CodeGen/IfConversion.cpp')
-rw-r--r--llvm/lib/CodeGen/IfConversion.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/IfConversion.cpp b/llvm/lib/CodeGen/IfConversion.cpp
index 66ac1848392..3fbab12a3a1 100644
--- a/llvm/lib/CodeGen/IfConversion.cpp
+++ b/llvm/lib/CodeGen/IfConversion.cpp
@@ -189,6 +189,11 @@ namespace {
bool runOnMachineFunction(MachineFunction &MF) override;
+ MachineFunctionProperties getRequiredProperties() const override {
+ return MachineFunctionProperties().set(
+ MachineFunctionProperties::Property::AllVRegsAllocated);
+ }
+
private:
bool ReverseBranchCondition(BBInfo &BBI);
bool ValidSimple(BBInfo &TrueBBI, unsigned &Dups,
OpenPOWER on IntegriCloud