summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/Lanai
diff options
context:
space:
mode:
authorGuillaume Chatelet <gchatelet@google.com>2019-09-06 15:03:49 +0000
committerGuillaume Chatelet <gchatelet@google.com>2019-09-06 15:03:49 +0000
commitad1cea0ddafe7494e9726623bd08d1814c8cf19e (patch)
treeffcac94041cfd47c05512d793a1fcb94a0efa188 /llvm/lib/Target/Lanai
parent4f8d005831a0b6cedd4935579dda2ac97518e4d9 (diff)
downloadbcm5719-llvm-ad1cea0ddafe7494e9726623bd08d1814c8cf19e.tar.gz
bcm5719-llvm-ad1cea0ddafe7494e9726623bd08d1814c8cf19e.zip
[Alignment][NFC] Use Align with TargetLowering::setPrefFunctionAlignment
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, javed.absar, hiraditya, kbarton, asb, rbar, johnrusso, simoncook, apazos, sabuasal, niosHD, jrtc27, MaskRay, zzheng, edward-jones, rogfer01, MartinMosbeck, brucehoult, the_o, PkmX, jocewei, jsji, s.egerton, pzheng, ychen, llvm-commits Tags: #llvm Differential Revision: https://reviews.llvm.org/D67267 llvm-svn: 371212
Diffstat (limited to 'llvm/lib/Target/Lanai')
-rw-r--r--llvm/lib/Target/Lanai/LanaiISelLowering.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Target/Lanai/LanaiISelLowering.cpp b/llvm/lib/Target/Lanai/LanaiISelLowering.cpp
index 4b968531069..5cd72da0daa 100644
--- a/llvm/lib/Target/Lanai/LanaiISelLowering.cpp
+++ b/llvm/lib/Target/Lanai/LanaiISelLowering.cpp
@@ -144,9 +144,9 @@ LanaiTargetLowering::LanaiTargetLowering(const TargetMachine &TM,
setTargetDAGCombine(ISD::OR);
setTargetDAGCombine(ISD::XOR);
- // Function alignments (log2)
+ // Function alignments
setMinFunctionAlignment(llvm::Align(4));
- setPrefFunctionLogAlignment(2);
+ setPrefFunctionAlignment(llvm::Align(4));
setJumpIsExpensive(true);
OpenPOWER on IntegriCloud