commit | b0e47911f9ad4071e4b6edd77a2de42900852b02 | [log] [tgz] |
---|---|---|
author | Sanjay Patel <spatel@rotateright.com> | Tue Feb 13 20:41:22 2018 +0000 |
committer | Sanjay Patel <spatel@rotateright.com> | Tue Feb 13 20:41:22 2018 +0000 |
tree | 89c4809953b14d4bb9c47b4c6cff63f3936fa09d | |
parent | 57d82ee080758dbcea790c879ea68971d6aa6e95 [diff] |
[InstCombine] (bool X) * Y --> X ? Y : 0 This is both a functional improvement for vectors and an efficiency improvement for scalars. The existing code below the new folds does the same thing for scalars, but in an indirect and expensive way. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@325048 91177308-0d34-0410-b5e6-96231b3b80d8