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> {
251251
252252 LLVM_ABI void printPipeline (raw_ostream &OS,
253253 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+ }
254262};
255263
256264} // end llvm namespace
Original file line number Diff line number Diff line change @@ -301,6 +301,8 @@ bool VirtRegRewriterLegacy::runOnMachineFunction(MachineFunction &MF) {
301301PreservedAnalyses
302302VirtRegRewriterPass::run (MachineFunction &MF,
303303 MachineFunctionAnalysisManager &MFAM) {
304+ MFPropsModifier _ (*this , MF);
305+
304306 VirtRegMap &VRM = MFAM.getResult <VirtRegMapAnalysis>(MF);
305307 LiveIntervals &LIS = MFAM.getResult <LiveIntervalsAnalysis>(MF);
306308 LiveRegMatrix &LRM = MFAM.getResult <LiveRegMatrixAnalysis>(MF);
You can’t perform that action at this time.
0 commit comments