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