HomePhabricator

[Hexagon] Handle non-aligned offsets in globals in extender optimization

Description

[Hexagon] Handle non-aligned offsets in globals in extender optimization

Instructions like memd(r0+##global+1) are legal as long as the entire
address is properly aligned. Assuming that "global" is aligned at an
8-byte boundary, the expression "global+1" appears to be misaligned.
Handle such cases in HexagonConstExtenders, and make sure that any non-
extended offsets generated are still aligned accordingly.

Details

Committed
kparzyszJan 30 2018, 10:12 AM
Parents
rL323798: Revert: [Hexagon] Make sure that offset on globals matches alignment…
Branches
Unknown
Tags
Unknown