[PATCH] D64713: [InstCombine] X *fast (C ? 1.0 : 0.0) -> C ? X : 0.0
Dávid Bolvanský via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Jul 29 07:37:21 PDT 2019
xbolva00 added a subscriber: lebedev.ri.
xbolva00 added a comment.
Do we miss int version of this? @spatel @lebedev.ri
int foo(int x, int y, bool b) {
return x / (b ? 1 : y);
}
We have sdiv x, (select b 1 y), x86-64:
cmov...
idiv...
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D64713/new/
https://reviews.llvm.org/D64713
More information about the llvm-commits
mailing list