[PATCH] D44997: [InstCombine] Fold compare of int constant against an integer vector splat
Daniel Neilson via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Mar 29 11:51:40 PDT 2018
dneilson added inline comments.
================
Comment at: test/Transforms/InstCombine/icmp-bc-vecsplat.ll:114
+; CHECK-NEXT: [[COND:%.*]] = icmp ult i32 [[CAST]], 1212696647
+; CHECK-NEXT: ret i1 [[COND]]
+;
----------------
efriedma wrote:
> This can be optimized: https://rise4fun.com/Alive/wVf . Not sure if that's useful in practice.
Interesting. Not useful for the direct application that I have in mind for this peephole optimization (I really only need eq/ne), but good to keep in mind for the future. Thanks for pointing it out!
Repository:
rL LLVM
https://reviews.llvm.org/D44997
More information about the llvm-commits
mailing list