[Alignment] TargetLowering::hasPairedLoad must use Align for RequiredAlignment
authorGuillaume Chatelet <gchatelet@google.com>
Wed, 1 Jul 2020 14:32:30 +0000 (14:32 +0000)
committerGuillaume Chatelet <gchatelet@google.com>
Wed, 1 Jul 2020 14:32:30 +0000 (14:32 +0000)
commitef36f5143d83897cc6f59ff918769d29ad5a0612
tree3ddb942cd6ad667ff75716282ba2b2d70915eab5
parentd3085c25012aceef3755abf9921a0368c64f40c6
[Alignment] TargetLowering::hasPairedLoad must use Align for RequiredAlignment

As per documentation of `hasPairLoad`:
"`RequiredAlignment` gives the minimal alignment constraints that must be met to be able to select this paired load."
In this sense, `0` is strictly equivalent to `1`. We make this obvious by using `Align` instead of unsigned.
There is only one implementor of this interface.

Differential Revision: https://reviews.llvm.org/D82958
llvm/include/llvm/CodeGen/TargetLowering.h
llvm/lib/Analysis/Lint.cpp
llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
llvm/lib/Target/AArch64/AArch64ISelLowering.cpp
llvm/lib/Target/AArch64/AArch64ISelLowering.h