From 1fdf02ad5a4ca155017eea22688365a20aab077c Mon Sep 17 00:00:00 2001 From: Rahul Joshi Date: Thu, 22 May 2025 08:07:52 -0700 Subject: [LLVM][CodeGen] Add convenience accessors for MachineFunctionProperties (#140002) Add per-property has/set/reset functions to MachineFunctionProperties. --- llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp') diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp index 586728a..4bdb8e6 100644 --- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp @@ -345,8 +345,7 @@ SelectionDAGISelLegacy::SelectionDAGISelLegacy( bool SelectionDAGISelLegacy::runOnMachineFunction(MachineFunction &MF) { // If we already selected that function, we do not need to run SDISel. - if (MF.getProperties().hasProperty( - MachineFunctionProperties::Property::Selected)) + if (MF.getProperties().hasSelected()) return false; // Do some sanity-checking on the command-line options. @@ -421,8 +420,7 @@ PreservedAnalyses SelectionDAGISelPass::run(MachineFunction &MF, MachineFunctionAnalysisManager &MFAM) { // If we already selected that function, we do not need to run SDISel. - if (MF.getProperties().hasProperty( - MachineFunctionProperties::Property::Selected)) + if (MF.getProperties().hasSelected()) return PreservedAnalyses::all(); // Do some sanity-checking on the command-line options. -- cgit v1.1