]> granicus.if.org Git - llvm/commit
Merging r281650:
authorTom Stellard <thomas.stellard@amd.com>
Mon, 28 Nov 2016 21:25:53 +0000 (21:25 +0000)
committerTom Stellard <thomas.stellard@amd.com>
Mon, 28 Nov 2016 21:25:53 +0000 (21:25 +0000)
commit0cdf5eea7a1366c90be4ea1d9e6c4e71a31f3aa3
tree9aa799afaa6b661202b33bab6f655196c768b6a2
parent9496ac113a963da23424598e3636e2cc3656b3ab
Merging r281650:

------------------------------------------------------------------------
r281650 | david.majnemer | 2016-09-15 13:10:09 -0700 (Thu, 15 Sep 2016) | 6 lines

[InstCombine] Do not RAUW a constant GEP

canRewriteGEPAsOffset expects to process instructions, not constants.

This fixes PR30342.

------------------------------------------------------------------------

git-svn-id: https://llvm.org/svn/llvm-project/llvm/branches/release_39@288066 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/InstCombine/InstCombineCompares.cpp
test/Transforms/InstCombine/indexed-gep-compares.ll