]> granicus.if.org Git - llvm/commit
[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)
commitb9fe533b26e437d063e6a384e6444a607c59f333
treef64bff89006e8f51a43e301371b149d30af291de
parent97b95a7b729bc3b25ef1cbdb879f042a825d2803
[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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@300657 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Scalar/JumpThreading.cpp
test/Transforms/JumpThreading/basic.ll