diff options
author | Matthias Braun <matze@braunis.de> | 2016-08-23 21:19:49 +0000 |
---|---|---|
committer | Matthias Braun <matze@braunis.de> | 2016-08-23 21:19:49 +0000 |
commit | db9ce2fda61a49a1d62f80c54ea3ae56373c517f (patch) | |
tree | 0d4fe7d6e3458676832de0c10a43aed511dbacf8 /lib/CodeGen/RegAllocGreedy.cpp | |
parent | a44dd5e02d147f874c19ebfb3c6b6a8fc730f6d7 (diff) |
MachineFunction: Introduce NoPHIs property
I want to compute the SSA property of .mir files automatically in
upcoming patches. The problem with this is that some inputs will be
reported as static single assignment with some passes claiming not to
support SSA form. In reality though those passes do not support PHI
instructions => Track the presence of PHI instructions separate from the
SSA property.
Differential Revision: https://reviews.llvm.org/D22719
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@279573 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/RegAllocGreedy.cpp')
-rw-r--r-- | lib/CodeGen/RegAllocGreedy.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/CodeGen/RegAllocGreedy.cpp b/lib/CodeGen/RegAllocGreedy.cpp index c4d4b1eadf3..01d0f11bc81 100644 --- a/lib/CodeGen/RegAllocGreedy.cpp +++ b/lib/CodeGen/RegAllocGreedy.cpp @@ -334,6 +334,11 @@ public: /// Perform register allocation. bool runOnMachineFunction(MachineFunction &mf) override; + MachineFunctionProperties getRequiredProperties() const override { + return MachineFunctionProperties().set( + MachineFunctionProperties::Property::NoPHIs); + } + static char ID; private: |