mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2025-04-01 12:43:47 +00:00
[SystemZ] Remember to reset the NoPHIs property on MF in createPHIsForSelects()
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 llvm-svn: 352030
This commit is contained in:
parent
1e718429c1
commit
5916dea338
@ -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.
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user