File tree Expand file tree Collapse file tree 2 files changed +10
-5
lines changed Expand file tree Collapse file tree 2 files changed +10
-5
lines changed Original file line number Diff line number Diff line change @@ -754,9 +754,9 @@ bool GCNDPPCombine::combineDPPMov(MachineInstr &MovMI) const {
754
754
}
755
755
756
756
bool GCNDPPCombineLegacy::runOnMachineFunction (MachineFunction &MF) {
757
- if (skipFunction (MF.getFunction ())) {
757
+ if (skipFunction (MF.getFunction ()))
758
758
return false ;
759
- }
759
+
760
760
return GCNDPPCombine ().run (MF);
761
761
}
762
762
@@ -795,10 +795,15 @@ bool GCNDPPCombine::run(MachineFunction &MF) {
795
795
796
796
PreservedAnalyses GCNDPPCombinePass::run (MachineFunction &MF,
797
797
MachineFunctionAnalysisManager &) {
798
+ if (MF.getFunction ().hasOptNone ())
799
+ return PreservedAnalyses::all ();
800
+
801
+ MFPropsModifier _ (*this , MF);
802
+
798
803
bool Changed = GCNDPPCombine ().run (MF);
799
- if (!Changed) {
804
+ if (!Changed)
800
805
return PreservedAnalyses::all ();
801
- }
806
+
802
807
auto PA = getMachineFunctionPassPreservedAnalyses ();
803
808
PA.preserveSet <CFGAnalyses>();
804
809
return PA;
Original file line number Diff line number Diff line change @@ -25,4 +25,4 @@ class GCNDPPCombinePass : public PassInfoMixin<GCNDPPCombinePass> {
25
25
26
26
} // end namespace llvm
27
27
28
- #endif
28
+ #endif // LLVM_LIB_TARGET_AMDGPU_GCNDPPCOMBINE_H
You can’t perform that action at this time.
0 commit comments