]> granicus.if.org Git - llvm/commitdiff
[SystemZ] Remember to reset the NoPHIs property on MF in createPHIsForSelects()
authorJonas Paulsson <paulsson@linux.vnet.ibm.com>
Thu, 24 Jan 2019 07:54:41 +0000 (07:54 +0000)
committerJonas Paulsson <paulsson@linux.vnet.ibm.com>
Thu, 24 Jan 2019 07:54:41 +0000 (07:54 +0000)
After creating new PHI instructions during isel pseudo expansion, the NoPHIs
property of MF should be reset in case it was previously set.

Review: Ulrich Weigand

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@352030 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/SystemZ/SystemZISelLowering.cpp
test/CodeGen/SystemZ/debuginstr-02.mir

index 0c41f38554ff8a1e1f3ac518be2d3c5d0fa10f8b..5a59a33d0741b3fcf0216edd3db169fbe8014454 100644 (file)
@@ -6237,6 +6237,8 @@ static void createPHIsForSelects(MachineBasicBlock::iterator MIItBegin,
     // Add this PHI to the rewrite table.
     RegRewriteTable[DestReg] = std::make_pair(TrueReg, FalseReg);
   }
+
+  MF->getProperties().reset(MachineFunctionProperties::Property::NoPHIs);
 }
 
 // Implement EmitInstrWithCustomInserter for pseudo Select* instruction MI.
index 6083c26eeaea2a27da5a3713fdc329cd934a3cb4..205e8b9095a0c8bd06be94c625d1bf7d7dfaa2ce 100644 (file)
@@ -1,8 +1,8 @@
 # Check that the backend can handle consecutive select instructions also in
 # the presence of DEBUG_VALUE machine instructions.
 #
-# RUN: llc %s -mtriple=s390x-linux-gnu -mcpu=z13 -start-before=expand-isel-pseudos \
-# RUN:   -o - 2>&1 | FileCheck %s
+# RUN: llc %s -verify-machineinstrs -mtriple=s390x-linux-gnu -mcpu=z13 \
+# RUN:   -start-before=expand-isel-pseudos -o - 2>&1 | FileCheck %s
 #
 # CHECK-LABEL: %bb.1:
 # CHECK:       ldr