[PATCH] D24147: Lower consecutive select instructions correctly.
Dehao Chen via llvm-commits
llvm-commits at lists.llvm.org
Thu Sep 1 11:58:14 PDT 2016
danielcdh created this revision.
danielcdh added a reviewer: davidxl.
danielcdh added a subscriber: llvm-commits.
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
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 7517 bytes
Desc: not available
More information about the llvm-commits