summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/Hexagon/HexagonConstExtenders.cpp
diff options
context:
space:
mode:
authorKrzysztof Parzyszek <kparzysz@codeaurora.org>2018-01-30 18:10:27 +0000
committerKrzysztof Parzyszek <kparzysz@codeaurora.org>2018-01-30 18:10:27 +0000
commit96a284114ecd0df27d7b5f54cf712a3059252eb2 (patch)
tree200e4511e3bca1c4455dbd789f07805615dd9430 /llvm/lib/Target/Hexagon/HexagonConstExtenders.cpp
parent073f089c6e5ba77bc398cc2d1b106cebbbd2429f (diff)
downloadbcm5719-llvm-96a284114ecd0df27d7b5f54cf712a3059252eb2.tar.gz
bcm5719-llvm-96a284114ecd0df27d7b5f54cf712a3059252eb2.zip
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. llvm-svn: 323798
Diffstat (limited to 'llvm/lib/Target/Hexagon/HexagonConstExtenders.cpp')
-rw-r--r--llvm/lib/Target/Hexagon/HexagonConstExtenders.cpp1
1 files changed, 0 insertions, 1 deletions
diff --git a/llvm/lib/Target/Hexagon/HexagonConstExtenders.cpp b/llvm/lib/Target/Hexagon/HexagonConstExtenders.cpp
index cb23f9b4815..dd759fe9ce5 100644
--- a/llvm/lib/Target/Hexagon/HexagonConstExtenders.cpp
+++ b/llvm/lib/Target/Hexagon/HexagonConstExtenders.cpp
@@ -57,7 +57,6 @@ namespace {
return *this;
}
OffsetRange &shift(int32_t S) {
- assert(alignTo(std::abs(S), Align) == uint64_t(std::abs(S)));
Min += S;
Max += S;
return *this;
OpenPOWER on IntegriCloud