summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/ARM/ARMISelLowering.cpp
diff options
context:
space:
mode:
authorGuillaume Chatelet <gchatelet@google.com>2019-09-06 14:51:15 +0000
committerGuillaume Chatelet <gchatelet@google.com>2019-09-06 14:51:15 +0000
commit9fcf066d0cd2fc283e410acc19b110c90f43e26c (patch)
treeab029a5c72bace85b998ddef43ee6a4102e251dc /llvm/lib/Target/ARM/ARMISelLowering.cpp
parentf1d33842b9d0701bf31a51c21c8bf9af5dd79138 (diff)
downloadbcm5719-llvm-9fcf066d0cd2fc283e410acc19b110c90f43e26c.tar.gz
bcm5719-llvm-9fcf066d0cd2fc283e410acc19b110c90f43e26c.zip
[Alignment][NFC] Use Align with TargetLowering::setPrefLoopAlignment
Summary: This is patch is part of a series to introduce an Alignment type. See this thread for context: http://lists.llvm.org/pipermail/llvm-dev/2019-July/133851.html See this patch for the introduction of the type: https://reviews.llvm.org/D64790 Reviewers: courbet Subscribers: nemanjai, hiraditya, kbarton, MaskRay, jsji, ychen, llvm-commits Tags: #llvm Differential Revision: https://reviews.llvm.org/D67278 llvm-svn: 371210
Diffstat (limited to 'llvm/lib/Target/ARM/ARMISelLowering.cpp')
-rw-r--r--llvm/lib/Target/ARM/ARMISelLowering.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/Target/ARM/ARMISelLowering.cpp b/llvm/lib/Target/ARM/ARMISelLowering.cpp
index 5c298e52388..eacaa75bc10 100644
--- a/llvm/lib/Target/ARM/ARMISelLowering.cpp
+++ b/llvm/lib/Target/ARM/ARMISelLowering.cpp
@@ -1419,7 +1419,8 @@ ARMTargetLowering::ARMTargetLowering(const TargetMachine &TM,
// Prefer likely predicted branches to selects on out-of-order cores.
PredictableSelectIsExpensive = Subtarget->getSchedModel().isOutOfOrder();
- setPrefLoopLogAlignment(Subtarget->getPrefLoopLogAlignment());
+ setPrefLoopAlignment(
+ llvm::Align(1UL << Subtarget->getPrefLoopLogAlignment()));
setMinFunctionAlignment(Subtarget->isThumb() ? llvm::Align(2)
: llvm::Align(4));
OpenPOWER on IntegriCloud