[PATCH] D82958: [Alignment] TargetLowering::hasPairedLoad must use Align for RequiredAlignment

Guillaume Chatelet via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Jul 1 07:00:19 PDT 2020


gchatelet created this revision.
gchatelet added a reviewer: courbet.
Herald added subscribers: llvm-commits, hiraditya.
Herald added a project: LLVM.

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.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D82958

Files:
  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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D82958.274783.patch
Type: text/x-patch
Size: 19944 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200701/86c1a8d3/attachment.bin>


More information about the llvm-commits mailing list