aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/MachineVerifier.cpp
diff options
context:
space:
mode:
authorMatthias Braun <matze@braunis.de>2016-08-24 01:32:41 +0000
committerMatthias Braun <matze@braunis.de>2016-08-24 01:32:41 +0000
commit79f85b3b8ff8e54e9c94870477f2868929e481b7 (patch)
tree67b36c04f6c3f2f4f73e0361a42cf993bb619d41 /llvm/lib/CodeGen/MachineVerifier.cpp
parentb31163136ca249127b95a457308c7de3cb7a9841 (diff)
downloadllvm-79f85b3b8ff8e54e9c94870477f2868929e481b7.zip
llvm-79f85b3b8ff8e54e9c94870477f2868929e481b7.tar.gz
llvm-79f85b3b8ff8e54e9c94870477f2868929e481b7.tar.bz2
MIRParser/MIRPrinter: Compute isSSA instead of printing/parsing it.
Specifying isSSA is an extra line at best and results in invalid MI at worst. Compute the value instead. Differential Revision: http://reviews.llvm.org/D22722 llvm-svn: 279600
Diffstat (limited to 'llvm/lib/CodeGen/MachineVerifier.cpp')
-rw-r--r--llvm/lib/CodeGen/MachineVerifier.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/MachineVerifier.cpp b/llvm/lib/CodeGen/MachineVerifier.cpp
index ce14b95..2b38ed3 100644
--- a/llvm/lib/CodeGen/MachineVerifier.cpp
+++ b/llvm/lib/CodeGen/MachineVerifier.cpp
@@ -580,7 +580,8 @@ void
MachineVerifier::visitMachineBasicBlockBefore(const MachineBasicBlock *MBB) {
FirstTerminator = nullptr;
- if (MRI->isSSA()) {
+ if (!MF->getProperties().hasProperty(
+ MachineFunctionProperties::Property::NoPHIs)) {
// If this block has allocatable physical registers live-in, check that
// it is an entry block or landing pad.
for (const auto &LI : MBB->liveins()) {