diff options
author | Pranav Bhandarkar <pranavb@codeaurora.org> | 2012-09-05 16:01:40 +0000 |
---|---|---|
committer | Pranav Bhandarkar <pranavb@codeaurora.org> | 2012-09-05 16:01:40 +0000 |
commit | 4c3d3ecdf83cc85e81f2146f2942cf6931e9ce18 (patch) | |
tree | e533c68e365d36515818601d41b0471a0169a8b6 /lib/Analysis/BasicAliasAnalysis.cpp | |
parent | 7dadac65d375ff21b7a36bfb7642578d2f467525 (diff) |
LLVM Bug Fix 13709: Remove needless lsr(Rp, #32) instruction access the
subreg_hireg of register pair Rp.
* lib/Target/Hexagon/HexagonPeephole.cpp(PeepholeDoubleRegsMap): New
DenseMap similar to PeepholeMap that additionally records subreg info
too.
(runOnMachineFunction): Record information in PeepholeDoubleRegsMap
and copy propagate the high sub-reg of Rp0 in Rp1 = lsr(Rp0, #32) to
the instruction Rx = COPY Rp1:logreg_subreg.
* test/CodeGen/Hexagon/remove_lsr.ll: New test.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@163214 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis/BasicAliasAnalysis.cpp')
0 files changed, 0 insertions, 0 deletions