commit | 8c8aa02da6a64a60df416814c4ab7bff0186e97b | [log] [tgz] |
---|---|---|
author | Dehao Chen <dehao@google.com> | Mon Sep 12 20:23:28 2016 +0000 |
committer | Dehao Chen <dehao@google.com> | Mon Sep 12 20:23:28 2016 +0000 |
tree | 43b0c6d1c3153b504736af46d4b125caee17bd0b | |
parent | a50fabab60e309d8cb6aa7b90c94b0210802e5bb [diff] |
Lower consecutive select instructions correctly. Summary: If consecutive select instructions are lowered separately in CGP, it will introduce redundant condition check and branches that cannot be removed by later optimization phases. This patch lowers all consecutive select instructions at the same to to avoid inefficent code as demonstrated in https://llvm.org/bugs/show_bug.cgi?id=29095 Reviewers: davidxl Subscribers: vsk, llvm-commits Differential Revision: https://reviews.llvm.org/D24147 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@281252 91177308-0d34-0410-b5e6-96231b3b80d8