[PATCH] D49954: [InstCombine] Fold Select with binary op

Dávid Bolvanský via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sun Jul 29 09:55:02 PDT 2018


xbolva00 added inline comments.


================
Comment at: test/Transforms/InstCombine/select-binop-icmp.ll:174-175
+;
+  %A = icmp eq <2 x i8>  %x, <i8 0, i8 undef>
+  %B = xor <2 x i8>  %x, %z
+  %C = select <2 x i1>  %A, <2 x i8>  %B, <2 x i8>  %y
----------------
spatel wrote:
> This case should fold, right? Please add a TODO comment here and in the source if that's correct.
With undef probably not.  


https://reviews.llvm.org/D49954





More information about the llvm-commits mailing list