OSDN Git Service

Revert: [Hexagon] Make sure that offset on globals matches alignment requirements
authorKrzysztof Parzyszek <kparzysz@codeaurora.org>
Tue, 30 Jan 2018 18:10:27 +0000 (18:10 +0000)
committerKrzysztof Parzyszek <kparzysz@codeaurora.org>
Tue, 30 Jan 2018 18:10:27 +0000 (18:10 +0000)
commit216bd9526a634a740f21aa3606b525ef383aceaf
treeb44db39818ff49c75f5af6f2b616503931296588
parent23aa7daadd5eb570c31404d6dccf5cfabfbc9fbf
Revert: [Hexagon] Make sure that offset on globals matches alignment requirements

This reverts r323562, since it wasn't actually necessary. Constant-
extended offsets do not need to be aligned, as long as the effective
address is aligned.

Keep the testcase, with a modification which checks that such offsets
are not unnecessarily avoided.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@323798 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/Hexagon/HexagonConstExtenders.cpp
lib/Target/Hexagon/HexagonISelLowering.cpp
test/CodeGen/Hexagon/isel-global-offset-alignment.ll