Eliminate PHI (int typed) which has only one use by intptr
authorXinliang David Li <davidxl@google.com>
Fri, 29 Sep 2017 22:10:15 +0000 (22:10 +0000)
committerXinliang David Li <davidxl@google.com>
Fri, 29 Sep 2017 22:10:15 +0000 (22:10 +0000)
commit5b9d96825b86fdd4063d03f78cc8fa5db9ba4f2c
tree70733295684edf09d92aca7d0cba7e66b3275fea
parente76aa3b0b26333f4e3f0631a7e2ef260cb2f91d1
Eliminate PHI (int typed) which has only one use by intptr

This patch will eliminate redundant intptr/ptrtoint that pessimizes
analyses such as SCEV, AA and will make optimization passes such
as auto-vectorization more powerful.

Differential revision: http://reviews.llvm.org/D37832

llvm-svn: 314561
llvm/lib/Transforms/InstCombine/InstCombineInternal.h
llvm/lib/Transforms/InstCombine/InstCombinePHI.cpp
llvm/test/Transforms/InstCombine/intptr1.ll [new file with mode: 0644]
llvm/test/Transforms/InstCombine/intptr2.ll [new file with mode: 0644]
llvm/test/Transforms/InstCombine/intptr3.ll [new file with mode: 0644]
llvm/test/Transforms/InstCombine/intptr4.ll [new file with mode: 0644]