summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms
diff options
context:
space:
mode:
authorGuillaume Chatelet <gchatelet@google.com>2019-09-27 08:56:43 +0000
committerGuillaume Chatelet <gchatelet@google.com>2019-09-27 08:56:43 +0000
commitd886f391af827cd3dc833944a005346b2cf80fae (patch)
treec7f6b9101b25b699013770d626f5bd8aa20435d5 /llvm/lib/Transforms
parent2096518d587b9eb35218279e08822ed57f0ab9c7 (diff)
downloadbcm5719-llvm-d886f391af827cd3dc833944a005346b2cf80fae.tar.gz
bcm5719-llvm-d886f391af827cd3dc833944a005346b2cf80fae.zip
[Alignment][NFC] MaybeAlign in GVNExpression
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: hiraditya, llvm-commits Tags: #llvm Differential Revision: https://reviews.llvm.org/D67922 llvm-svn: 373054
Diffstat (limited to 'llvm/lib/Transforms')
-rw-r--r--llvm/lib/Transforms/Scalar/NewGVN.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Scalar/NewGVN.cpp b/llvm/lib/Transforms/Scalar/NewGVN.cpp
index 902e459b8a9..91c879097af 100644
--- a/llvm/lib/Transforms/Scalar/NewGVN.cpp
+++ b/llvm/lib/Transforms/Scalar/NewGVN.cpp
@@ -1332,7 +1332,7 @@ LoadExpression *NewGVN::createLoadExpression(Type *LoadType, Value *PointerOp,
E->setOpcode(0);
E->op_push_back(PointerOp);
if (LI)
- E->setAlignment(LI->getAlignment());
+ E->setAlignment(MaybeAlign(LI->getAlignment()));
// TODO: Value number heap versions. We may be able to discover
// things alias analysis can't on it's own (IE that a store and a
OpenPOWER on IntegriCloud