When merging a pair of DS reads or writes needs to materialize the base
offset in a vgpr, choose a value that is aligned to as high a power of
two as possible. This maximises the chance that different pairs can use
the same base offset, in which case the base offset registers can be
commoned up by MachineCSE.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
llvm/lib/Target/AMDGPU/SILoadStoreOptimizer.cpp | ||
---|---|---|
812–813 | I'd prefer not to, since the rest of the file is pretty consistent in using unsigned throughout. |
llvm/lib/Target/AMDGPU/SILoadStoreOptimizer.cpp | ||
---|---|---|
812–813 | LLVM is pretty consistently wrong in using unsigned for 32-bit values when it's not guaranteed by the standard |
Should probably use uint32_t throughout here