File tree 2 files changed +2
-9
lines changed
2 files changed +2
-9
lines changed Original file line number Diff line number Diff line change @@ -88,6 +88,8 @@ bool MachineFunctionPass::runOnFunction(Function &F) {
88
88
MF.print (OS);
89
89
}
90
90
91
+ MFProps.reset (ClearedProperties);
92
+
91
93
bool RV = runOnMachineFunction (MF);
92
94
93
95
if (ShouldEmitSizeRemarks) {
@@ -114,7 +116,6 @@ bool MachineFunctionPass::runOnFunction(Function &F) {
114
116
}
115
117
116
118
MFProps.set (SetProperties);
117
- MFProps.reset (ClearedProperties);
118
119
119
120
// For --print-changed, print if the serialized MF has changed. Modes other
120
121
// than quiet/verbose are unimplemented and treated the same as 'quiet'.
Original file line number Diff line number Diff line change @@ -4167,14 +4167,6 @@ bool RegisterCoalescer::runOnMachineFunction(MachineFunction &fn) {
4167
4167
else
4168
4168
JoinGlobalCopies = (EnableGlobalCopies == cl::BOU_TRUE);
4169
4169
4170
- // FIXME: MachineFunctionProperties cannot express the required pre-property
4171
- // no-SSA. When running a MIR testcase without any virtual register defs, the
4172
- // MIR parser assumes SSA. MachineFunctionPass::getClearedProperties is called
4173
- // after the pass is run, so the properties at this point say it's an SSA
4174
- // function. Forcibly clear it here so -verify-coalescing doesn't complain
4175
- // after multiple virtual register defs are introduced.
4176
- MRI->leaveSSA ();
4177
-
4178
4170
// If there are PHIs tracked by debug-info, they will need updating during
4179
4171
// coalescing. Build an index of those PHIs to ease updating.
4180
4172
SlotIndexes *Slots = LIS->getSlotIndexes ();
You can’t perform that action at this time.
0 commit comments