File tree 2 files changed +10
-0
lines changed
2 files changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -248,6 +248,14 @@ class VirtRegRewriterPass : public PassInfoMixin<VirtRegRewriterPass> {
248
248
static bool isRequired () { return true ; }
249
249
250
250
void printPipeline (raw_ostream &OS, function_ref<StringRef(StringRef)>) const ;
251
+
252
+ MachineFunctionProperties getSetProperties () const {
253
+ if (ClearVirtRegs) {
254
+ return MachineFunctionProperties ().set (
255
+ MachineFunctionProperties::Property::NoVRegs);
256
+ }
257
+ return {};
258
+ }
251
259
};
252
260
253
261
} // end llvm namespace
Original file line number Diff line number Diff line change @@ -302,6 +302,8 @@ bool VirtRegRewriterLegacy::runOnMachineFunction(MachineFunction &MF) {
302
302
PreservedAnalyses
303
303
VirtRegRewriterPass::run (MachineFunction &MF,
304
304
MachineFunctionAnalysisManager &MFAM) {
305
+ MFPropsModifier _ (*this , MF);
306
+
305
307
VirtRegMap &VRM = MFAM.getResult <VirtRegMapAnalysis>(MF);
306
308
LiveIntervals &LIS = MFAM.getResult <LiveIntervalsAnalysis>(MF);
307
309
LiveRegMatrix &LRM = MFAM.getResult <LiveRegMatrixAnalysis>(MF);
You can’t perform that action at this time.
0 commit comments