]> granicus.if.org Git - llvm/commit
Merging r316035:
authorTom Stellard <tstellar@redhat.com>
Tue, 28 Nov 2017 22:02:15 +0000 (22:02 +0000)
committerTom Stellard <tstellar@redhat.com>
Tue, 28 Nov 2017 22:02:15 +0000 (22:02 +0000)
commit9bc5c8821866ecc04eda587de23dd4b009760265
tree051e620264b40a7fb76bd30ca825d53571e856cc
parent3e430490419645a35399e7937d96482681984e47
Merging r316035:

------------------------------------------------------------------------
r316035 | tnorthover | 2017-10-17 14:43:52 -0700 (Tue, 17 Oct 2017) | 6 lines

AArch64: account for possible frame index operand in compares.

If the address of a local is used in a comparison, AArch64 can fold the
address-calculation into the comparison via "adds". Unfortunately, a couple of
places (both hit in this one test) are not ready to deal with that yet and just
assume the first source operand is a register.
------------------------------------------------------------------------

git-svn-id: https://llvm.org/svn/llvm-project/llvm/branches/release_50@319231 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/AArch64/AArch64InstrInfo.cpp
lib/Target/AArch64/AArch64RedundantCopyElimination.cpp
test/CodeGen/AArch64/cmp-frameindex.ll [new file with mode: 0644]