[InstSimplify] add folds for or-of-icmps with same operands
authorSanjay Patel <spatel@rotateright.com>
Tue, 6 Dec 2016 18:09:37 +0000 (18:09 +0000)
committerSanjay Patel <spatel@rotateright.com>
Tue, 6 Dec 2016 18:09:37 +0000 (18:09 +0000)
commitd0ccdb46b9c1f6324e7bb77e1fb7d93fc4b77775
tree42306d1a3eec4e0ef1c33bd2da29a9b3a2b74545
parenta2a32c2cc8659f2c6a9983edcfc24fe56871256a
[InstSimplify] add folds for or-of-icmps with same operands

All of these (and a few more) are already handled by InstCombine,
but we shouldn't have to wait until then to simplify these because
they're cheap to deal with here in InstSimplify.

llvm-svn: 288833
llvm/lib/Analysis/InstructionSimplify.cpp
llvm/test/Transforms/InstSimplify/or-icmps-same-ops.ll