OSDN Git Service

[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)
commitb4824c6afa29e74e12bc34a3f7e11050251de055
tree99a1e545bfa5e9bce3070869a0b4fa3f5f7648ab
parent1f9118e82334218ac24153f6868de33ef0faa172
[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.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@288833 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Analysis/InstructionSimplify.cpp
test/Transforms/InstSimplify/or-icmps-same-ops.ll