OSDN Git Service

Renable r314928
authorXinliang David Li <davidxl@google.com>
Tue, 10 Oct 2017 05:07:54 +0000 (05:07 +0000)
committerXinliang David Li <davidxl@google.com>
Tue, 10 Oct 2017 05:07:54 +0000 (05:07 +0000)
commit60c5ae542c1d56923e6141802c2af7eb04ef2c04
tree01f5c0749d41cd3ed155739929714b39069a5b16
parent26935e73bc7cf2fa606e4e099195997713e48f9f
 Renable r314928

 Eliminate inttype phi with inttoptr/ptrtoint.

 This version fixed a bug in finding the matching
 phi -- the order of the incoming blocks may be
 different (triggered in self build on Windows).
 A new test case is added.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@315272 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]
test/Transforms/InstCombine/intptr5.ll [new file with mode: 0644]
test/Transforms/InstCombine/intptr6.ll [new file with mode: 0644]
test/Transforms/InstCombine/intptr7.ll [new file with mode: 0644]