File tree Expand file tree Collapse file tree 3 files changed +4
-8
lines changed Expand file tree Collapse file tree 3 files changed +4
-8
lines changed Original file line number Diff line number Diff line change @@ -20,8 +20,7 @@ class PostRAMachineSinkingPass
20
20
MachineFunctionAnalysisManager &MFAM);
21
21
22
22
MachineFunctionProperties getRequiredProperties () const {
23
- return MachineFunctionProperties ().set (
24
- MachineFunctionProperties::Property::NoVRegs);
23
+ return MachineFunctionProperties ().setNoVRegs ();
25
24
}
26
25
};
27
26
Original file line number Diff line number Diff line change @@ -253,10 +253,8 @@ class VirtRegRewriterPass : public PassInfoMixin<VirtRegRewriterPass> {
253
253
function_ref<StringRef(StringRef)>) const ;
254
254
255
255
MachineFunctionProperties getSetProperties () const {
256
- if (ClearVirtRegs) {
257
- return MachineFunctionProperties ().set (
258
- MachineFunctionProperties::Property::NoVRegs);
259
- }
256
+ if (ClearVirtRegs)
257
+ return MachineFunctionProperties ().setNoVRegs ();
260
258
return {};
261
259
}
262
260
};
Original file line number Diff line number Diff line change @@ -2102,8 +2102,7 @@ class PostRAMachineSinkingLegacy : public MachineFunctionPass {
2102
2102
}
2103
2103
2104
2104
MachineFunctionProperties getRequiredProperties () const override {
2105
- return MachineFunctionProperties ().set (
2106
- MachineFunctionProperties::Property::NoVRegs);
2105
+ return MachineFunctionProperties ().setNoVRegs ();
2107
2106
}
2108
2107
};
2109
2108
You can’t perform that action at this time.
0 commit comments