summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/X86/X86FixupLEAs.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/Target/X86/X86FixupLEAs.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/Target/X86/X86FixupLEAs.cpp')
-rw-r--r--llvm/lib/Target/X86/X86FixupLEAs.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/llvm/lib/Target/X86/X86FixupLEAs.cpp b/llvm/lib/Target/X86/X86FixupLEAs.cpp
index 1dd69e8a6a5..dc8f6d5f0bc 100644
--- a/llvm/lib/Target/X86/X86FixupLEAs.cpp
+++ b/llvm/lib/Target/X86/X86FixupLEAs.cpp
@@ -92,6 +92,12 @@ public:
/// if needed and when possible.
bool runOnMachineFunction(MachineFunction &MF) override;
+ // This pass runs after regalloc and doesn't support VReg operands.
+ MachineFunctionProperties getRequiredProperties() const override {
+ return MachineFunctionProperties().set(
+ MachineFunctionProperties::Property::AllVRegsAllocated);
+ }
+
private:
MachineFunction *MF;
const X86InstrInfo *TII; // Machine instruction info.
OpenPOWER on IntegriCloud