summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/StackMapLivenessAnalysis.cpp
diff options
context:
space:
mode:
authorMatthias Braun <matze@braunis.de>2018-07-26 00:27:47 +0000
committerMatthias Braun <matze@braunis.de>2018-07-26 00:27:47 +0000
commit57dd5b3dead6338d3a0647c835deebf6dbd86910 (patch)
tree3d776aab1d3f62f12ba0fcd3f79f85a408cf6ed6 /llvm/lib/CodeGen/StackMapLivenessAnalysis.cpp
parentbcbb032d557db28b221ac0b1992413de2b653454 (diff)
downloadbcm5719-llvm-57dd5b3dead6338d3a0647c835deebf6dbd86910.tar.gz
bcm5719-llvm-57dd5b3dead6338d3a0647c835deebf6dbd86910.zip
CodeGen: Cleanup regmask construction; NFC
- Avoid duplication of regmask size calculation. - Simplify allocateRegisterMask() call. - Rename allocateRegisterMask() to allocateRegMask() to be consistent with naming in MachineOperand. llvm-svn: 337986
Diffstat (limited to 'llvm/lib/CodeGen/StackMapLivenessAnalysis.cpp')
-rw-r--r--llvm/lib/CodeGen/StackMapLivenessAnalysis.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/StackMapLivenessAnalysis.cpp b/llvm/lib/CodeGen/StackMapLivenessAnalysis.cpp
index fc2895a03f6..00cf8070be5 100644
--- a/llvm/lib/CodeGen/StackMapLivenessAnalysis.cpp
+++ b/llvm/lib/CodeGen/StackMapLivenessAnalysis.cpp
@@ -160,7 +160,7 @@ void StackMapLiveness::addLiveOutSetToMI(MachineFunction &MF,
/// register live set.
uint32_t *StackMapLiveness::createRegisterMask(MachineFunction &MF) const {
// The mask is owned and cleaned up by the Machine Function.
- uint32_t *Mask = MF.allocateRegisterMask(TRI->getNumRegs());
+ uint32_t *Mask = MF.allocateRegMask();
for (auto Reg : LiveRegs)
Mask[Reg / 32] |= 1U << (Reg % 32);
OpenPOWER on IntegriCloud