aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
diff options
context:
space:
mode:
authorRahul Joshi <rjoshi@nvidia.com>2025-05-22 08:07:52 -0700
committerGitHub <noreply@github.com>2025-05-22 08:07:52 -0700
commit1fdf02ad5a4ca155017eea22688365a20aab077c (patch)
tree38da88552269eba7d8e30bfadbbf0c8d60375127 /llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
parenteee958285bde228df2893f70f879c1af8ec8386c (diff)
downloadllvm-1fdf02ad5a4ca155017eea22688365a20aab077c.zip
llvm-1fdf02ad5a4ca155017eea22688365a20aab077c.tar.gz
llvm-1fdf02ad5a4ca155017eea22688365a20aab077c.tar.bz2
[LLVM][CodeGen] Add convenience accessors for MachineFunctionProperties (#140002)users/pcc/spr/main.elf-add-branch-to-branch-optimization
Add per-property has<Prop>/set<Prop>/reset<Prop> functions to MachineFunctionProperties.
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp')
-rw-r--r--llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp6
1 files changed, 2 insertions, 4 deletions
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.