[JumpThread] We want to fold (not thread) when all predecessor go to single BB's...
authorXin Tong <trent.xin.tong@gmail.com>
Wed, 19 Apr 2017 05:15:57 +0000 (05:15 +0000)
committerXin Tong <trent.xin.tong@gmail.com>
Wed, 19 Apr 2017 05:15:57 +0000 (05:15 +0000)
commit636a332906b6b773935de7c3774c8b7389473d82
treed72acc2d52918df963beeea6a40f0538ece78e85
parent86652f262a0c8e1ad721d11e9258b6d64eb37369
[JumpThread] We want to fold (not thread) when all predecessor go to single BB's successor. .

Summary: In case all predecessor go to a single successor of current BB. We want to fold (not thread).

Reviewers: efriedma, sanjoy

Reviewed By: sanjoy

Subscribers: dberlin, majnemer, llvm-commits

Differential Revision: https://reviews.llvm.org/D30869

llvm-svn: 300657
llvm/lib/Transforms/Scalar/JumpThreading.cpp
llvm/test/Transforms/JumpThreading/basic.ll