diff options
author | AtariDreams <83477269+AtariDreams@users.noreply.github.com> | 2024-03-06 00:08:14 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-06 10:38:14 +0530 |
commit | 2a13422b8bcee449405e3ebff957b4020805f91c (patch) | |
tree | d1a2a147663a5aa08097d3ea29dbfe4c0cccfee4 /llvm/lib/Target/ARM/ARMLoadStoreOptimizer.cpp | |
parent | 5fb331106dbcfba21f82b2a84c22a65ee9d4d014 (diff) | |
download | llvm-2a13422b8bcee449405e3ebff957b4020805f91c.zip llvm-2a13422b8bcee449405e3ebff957b4020805f91c.tar.gz llvm-2a13422b8bcee449405e3ebff957b4020805f91c.tar.bz2 |
Convert many LivePhysRegs uses to LiveRegUnits (#83905)
Diffstat (limited to 'llvm/lib/Target/ARM/ARMLoadStoreOptimizer.cpp')
-rw-r--r-- | llvm/lib/Target/ARM/ARMLoadStoreOptimizer.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/Target/ARM/ARMLoadStoreOptimizer.cpp b/llvm/lib/Target/ARM/ARMLoadStoreOptimizer.cpp index 6121055..9bcf000 100644 --- a/llvm/lib/Target/ARM/ARMLoadStoreOptimizer.cpp +++ b/llvm/lib/Target/ARM/ARMLoadStoreOptimizer.cpp @@ -31,7 +31,7 @@ #include "llvm/ADT/Statistic.h" #include "llvm/ADT/iterator_range.h" #include "llvm/Analysis/AliasAnalysis.h" -#include "llvm/CodeGen/LivePhysRegs.h" +#include "llvm/CodeGen/LiveRegUnits.h" #include "llvm/CodeGen/MachineBasicBlock.h" #include "llvm/CodeGen/MachineDominators.h" #include "llvm/CodeGen/MachineFrameInfo.h" @@ -109,7 +109,7 @@ namespace { const ARMSubtarget *STI; const TargetLowering *TL; ARMFunctionInfo *AFI; - LivePhysRegs LiveRegs; + LiveRegUnits LiveRegs; RegisterClassInfo RegClassInfo; MachineBasicBlock::const_iterator LiveRegPos; bool LiveRegsValid; @@ -589,7 +589,7 @@ unsigned ARMLoadStoreOpt::findFreeReg(const TargetRegisterClass &RegClass) { } for (unsigned Reg : RegClassInfo.getOrder(&RegClass)) - if (LiveRegs.available(MF->getRegInfo(), Reg)) + if (LiveRegs.available(Reg)) return Reg; return 0; } |