[PATCH] D44997: [InstCombine] Fold compare of int constant against an integer vector splat
Max Kazantsev via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Mar 30 00:29:54 PDT 2018
mkazantsev added inline comments.
================
Comment at: lib/Transforms/InstCombine/InstCombineCompares.cpp:2488
+ // then we can fold the icmp into true/false.
+ Return = (Pred == ICmpInst::ICMP_NE) ? Builder.getTrue()
+ : Builder.getFalse();
----------------
I agree that it is true if `C.isSplat`, but how it will work in `else` branch?
Repository:
rL LLVM
https://reviews.llvm.org/D44997
More information about the llvm-commits
mailing list