aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/TwoAddressInstructionPass.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/TwoAddressInstructionPass.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/TwoAddressInstructionPass.cpp')
-rw-r--r--llvm/lib/CodeGen/TwoAddressInstructionPass.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/TwoAddressInstructionPass.cpp b/llvm/lib/CodeGen/TwoAddressInstructionPass.cpp
index 36e2156..8d94b40 100644
--- a/llvm/lib/CodeGen/TwoAddressInstructionPass.cpp
+++ b/llvm/lib/CodeGen/TwoAddressInstructionPass.cpp
@@ -1837,8 +1837,7 @@ bool TwoAddressInstructionImpl::run() {
MRI->leaveSSA();
// This pass will rewrite the tied-def to meet the RegConstraint.
- MF->getProperties()
- .set(MachineFunctionProperties::Property::TiedOpsRewritten);
+ MF->getProperties().setTiedOpsRewritten();
TiedOperandMap TiedOperands;
for (MachineBasicBlock &MBBI : *MF) {