[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 15 04:23:42 PDT 2019
xbolva00 added inline comments.
================
Comment at: llvm/lib/Transforms/InstCombine/InstructionCombining.cpp:793
+ } else if (RHSIsSelect) {
+ // X op (D ? E : F) -> D ? (X op E) : (X op F)
+ Cond = D;
----------------
Nice :)
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