]> granicus.if.org Git - llvm/commit
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)
commit9e5998cdf769181e4977d0a8e9e535c55ca1de7c
tree5bc02176e886977311f6e3e2dad650ddf2aaf106
parent682384e698e6cedebd19db8c2551936b27bb6942
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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@314561 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/InstCombine/InstCombineInternal.h
lib/Transforms/InstCombine/InstCombinePHI.cpp
test/Transforms/InstCombine/intptr1.ll [new file with mode: 0644]
test/Transforms/InstCombine/intptr2.ll [new file with mode: 0644]
test/Transforms/InstCombine/intptr3.ll [new file with mode: 0644]
test/Transforms/InstCombine/intptr4.ll [new file with mode: 0644]