This is 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
- Reviewers
courbet - Commits
- rGd000655a8cd5: [Alignment][NFC] Deprecate getMaxAlignment
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
llvm/lib/Target/Mips/MipsSEFrameLowering.cpp | ||
---|---|---|
542 |
So testing if a power of two fits into 16 bits is equivalent to testing if its log2 is less than 16 (the maximum power of 2 fitting in 16 bits is 0b1000000000000000, its log2 is 15) This is also faster as .value() (in MachineFrameInfo) will generate the value from a shift, where Log2 is a noop. |
why Log2 ?