OSDN Git Service

[Alignment] Remove unnecessary getValueOrABITypeAlignment calls (NFC)
authorNikita Popov <nikita.ppv@gmail.com>
Sun, 17 May 2020 20:14:42 +0000 (22:14 +0200)
committerNikita Popov <nikita.ppv@gmail.com>
Sun, 17 May 2020 20:19:15 +0000 (22:19 +0200)
commit52e98f620caf29f75c6d41f51a45610c26f68c65
tree00e7ef3cc5936bb9e266a98a18065d4a0605bea0
parentfde8eb00e1466cecd0fc6697f8c2ab837c5b7cf3
[Alignment] Remove unnecessary getValueOrABITypeAlignment calls (NFC)

Now that load/store alignment is required, we no longer need most
of them. Also switch the getLoadStoreAlignment() helper to return
Align instead of MaybeAlign.
14 files changed:
llvm/include/llvm/IR/Instructions.h
llvm/lib/Analysis/Loads.cpp
llvm/lib/Analysis/VectorUtils.cpp
llvm/lib/CodeGen/GlobalISel/IRTranslator.cpp
llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
llvm/lib/Target/X86/X86FastISel.cpp
llvm/lib/Transforms/Instrumentation/DataFlowSanitizer.cpp
llvm/lib/Transforms/Scalar/AlignmentFromAssumptions.cpp
llvm/lib/Transforms/Scalar/MemCpyOptimizer.cpp
llvm/lib/Transforms/Scalar/SROA.cpp
llvm/lib/Transforms/Vectorize/LoadStoreVectorizer.cpp
llvm/lib/Transforms/Vectorize/LoopVectorizationLegality.cpp
llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp