[polly] r373595 - [Alignment][NFC] Remove StoreInst::setAlignment(unsigned)
Guillaume Chatelet via llvm-commits
llvm-commits at lists.llvm.org
Thu Oct 3 06:17:22 PDT 2019
Author: gchatelet
Date: Thu Oct 3 06:17:21 2019
New Revision: 373595
URL: http://llvm.org/viewvc/llvm-project?rev=373595&view=rev
Log:
[Alignment][NFC] Remove StoreInst::setAlignment(unsigned)
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, bollu, jdoerfert
Subscribers: hiraditya, asbirlea, cfe-commits, llvm-commits
Tags: #clang, #llvm
Differential Revision: https://reviews.llvm.org/D68268
Modified:
polly/trunk/lib/CodeGen/BlockGenerators.cpp
Modified: polly/trunk/lib/CodeGen/BlockGenerators.cpp
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/lib/CodeGen/BlockGenerators.cpp?rev=373595&r1=373594&r2=373595&view=diff
==============================================================================
--- polly/trunk/lib/CodeGen/BlockGenerators.cpp (original)
+++ polly/trunk/lib/CodeGen/BlockGenerators.cpp Thu Oct 3 06:17:21 2019
@@ -1209,7 +1209,7 @@ void VectorBlockGenerator::copyStore(
StoreInst *Store = Builder.CreateStore(Vector, VectorPtr);
if (!Aligned)
- Store->setAlignment(8);
+ Store->setAlignment(Align(8));
} else {
for (unsigned i = 0; i < ScalarMaps.size(); i++) {
Value *Scalar = Builder.CreateExtractElement(Vector, Builder.getInt32(i));
More information about the llvm-commits
mailing list