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
Unit Tests
Unit Tests
Event Timeline
llvm/lib/Target/PowerPC/PPCISelLowering.cpp | ||
---|---|---|
1403 | This may seem like not NFC but it is. if (EltAlign > MaxAlign) MaxAlign = EltAlign; | |
1409 | ditto | |
llvm/lib/Target/X86/X86ISelLowering.cpp | ||
2197 | ditto | |
2203 | ditto |
This may seem like not NFC but it is.
This is because MaxAlign>=1 by definition and so it doesn't matter if EltAlign is 0 or 1 originally for the statement below: