This 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
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
| llvm/lib/Target/X86/X86FastISel.cpp | ||
|---|---|---|
| 1326 | LI->getAlign() is always >0, removing the need for getABITypeAlignment altogether. | |
| llvm/lib/Transforms/IPO/Inliner.cpp | ||
| 223 | Align1 and Align2 are always >0 so this whole block can be stripped away. if (Align1 != Align2) {
if (Align1 > Align2)
AvailableAlloca->setAlignment(AI->getAlign());
}Which is equivalent to: if (Align1 > Align2) AvailableAlloca->setAlignment(AI->getAlign()); | |
| llvm/lib/Transforms/Instrumentation/DataFlowSanitizer.cpp | ||
| 1375 | Again Align cannot to 0 | |
| llvm/lib/Transforms/Scalar/LICM.cpp | ||
| 1946 | ditto | |
| 1977 | ditto | |
LI->getAlign() is always >0, removing the need for getABITypeAlignment altogether.