diff options
| author | Jonas Paulsson <paulsson@linux.vnet.ibm.com> | 2019-01-24 07:54:41 +0000 |
|---|---|---|
| committer | Jonas Paulsson <paulsson@linux.vnet.ibm.com> | 2019-01-24 07:54:41 +0000 |
| commit | 5916dea3383bd596be7c653063df0d4dc67fab49 (patch) | |
| tree | b4dc18274b4402ebe43038df1a2c37d9f4dd2953 /llvm/lib/Target/SystemZ | |
| parent | 1e718429c17ff34e6c1d0590919d772ad0acecaa (diff) | |
| download | bcm5719-llvm-5916dea3383bd596be7c653063df0d4dc67fab49.tar.gz bcm5719-llvm-5916dea3383bd596be7c653063df0d4dc67fab49.zip | |
[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
Diffstat (limited to 'llvm/lib/Target/SystemZ')
| -rw-r--r-- | llvm/lib/Target/SystemZ/SystemZISelLowering.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/Target/SystemZ/SystemZISelLowering.cpp b/llvm/lib/Target/SystemZ/SystemZISelLowering.cpp index 0c41f38554f..5a59a33d074 100644 --- a/llvm/lib/Target/SystemZ/SystemZISelLowering.cpp +++ b/llvm/lib/Target/SystemZ/SystemZISelLowering.cpp @@ -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. |

