commit | fcc344502c5385ea4a73aa4bbcb5415443bf3468 | [log] [tgz] |
---|---|---|
author | Xin Tong <trent.xin.tong@gmail.com> | Sun Apr 23 20:56:29 2017 +0000 |
committer | Xin Tong <trent.xin.tong@gmail.com> | Sun Apr 23 20:56:29 2017 +0000 |
tree | f1ce401a1aefaba9edcb1789a7e6b4eb816e9661 | |
parent | 53cfa606755d6dedcd3d9e220afac9417e0b8b95 [diff] |
[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). I failed to update the phi nodes properly in the last patch https://reviews.llvm.org/rL300657. Phi nodes values are per predecessor in LLVM. Reviewers: sanjoy Reviewed By: sanjoy Subscribers: llvm-commits Differential Revision: https://reviews.llvm.org/D32400 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@301139 91177308-0d34-0410-b5e6-96231b3b80d8