summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/BranchRelaxation.cpp
diff options
context:
space:
mode:
authorGuillaume Chatelet <gchatelet@google.com>2019-09-27 12:54:21 +0000
committerGuillaume Chatelet <gchatelet@google.com>2019-09-27 12:54:21 +0000
commit18f805a7ea5f369ef523821693f1176b40bcfc7e (patch)
tree4304e048240695e0f4522b01e36ff6a884d83c5a /llvm/lib/CodeGen/BranchRelaxation.cpp
parent7e317cab732181540fcd03000b3d3e2a5c8bc642 (diff)
downloadbcm5719-llvm-18f805a7ea5f369ef523821693f1176b40bcfc7e.tar.gz
bcm5719-llvm-18f805a7ea5f369ef523821693f1176b40bcfc7e.zip
[Alignment][NFC] Remove unneeded llvm:: scoping on Align types
llvm-svn: 373081
Diffstat (limited to 'llvm/lib/CodeGen/BranchRelaxation.cpp')
-rw-r--r--llvm/lib/CodeGen/BranchRelaxation.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/llvm/lib/CodeGen/BranchRelaxation.cpp b/llvm/lib/CodeGen/BranchRelaxation.cpp
index bf7365b7c1d..6efdc9efa96 100644
--- a/llvm/lib/CodeGen/BranchRelaxation.cpp
+++ b/llvm/lib/CodeGen/BranchRelaxation.cpp
@@ -65,17 +65,17 @@ class BranchRelaxation : public MachineFunctionPass {
/// block.
unsigned postOffset(const MachineBasicBlock &MBB) const {
const unsigned PO = Offset + Size;
- const llvm::Align Align = MBB.getAlignment();
- if (Align == 1)
+ const Align Alignment = MBB.getAlignment();
+ if (Alignment == 1)
return PO;
- const llvm::Align ParentAlign = MBB.getParent()->getAlignment();
- if (Align <= ParentAlign)
- return PO + offsetToAlignment(PO, Align);
+ const Align ParentAlign = MBB.getParent()->getAlignment();
+ if (Alignment <= ParentAlign)
+ return PO + offsetToAlignment(PO, Alignment);
// The alignment of this MBB is larger than the function's alignment, so we
// can't tell whether or not it will insert nops. Assume that it will.
- return PO + Align.value() + offsetToAlignment(PO, Align);
+ return PO + Alignment.value() + offsetToAlignment(PO, Alignment);
}
};
OpenPOWER on IntegriCloud