]> granicus.if.org Git - llvm/commit
[InstCombine] Replace an equality compare of two APInt pointers with a compare of...
authorCraig Topper <craig.topper@intel.com>
Tue, 3 Oct 2017 04:55:04 +0000 (04:55 +0000)
committerCraig Topper <craig.topper@intel.com>
Tue, 3 Oct 2017 04:55:04 +0000 (04:55 +0000)
commitca4640c46ad2e1921d364820472c6e8dee6df962
treec935111981760df2c058b88371c9178b42636055
parent5f8513e7ad7b735ceb881914ce95056642fea1eb
[InstCombine] Replace an equality compare of two APInt pointers with a compare of the APInts themselves.

Apparently this works by virtue of the fact that the pointers are pointers to the APInts stored inside of the ConstantInt objects. But I really don't think we should be relying on that.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@314761 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/InstCombine/InstCombineCompares.cpp