[InstSimplify] remove redundant folds
authorSanjay Patel <spatel@rotateright.com>
Mon, 5 Mar 2018 22:46:48 +0000 (22:46 +0000)
committerSanjay Patel <spatel@rotateright.com>
Mon, 5 Mar 2018 22:46:48 +0000 (22:46 +0000)
commit62a4f5c2129917811b1aa6d64e623d946524c4c7
treef9024db90364ef50f835a9dcff74671c48426be7
parent2bc42e90ed147c45a1f0c74b61bb9f6176dbb9ef
[InstSimplify] remove redundant folds

The 'hasOneUse' check is a giveaway that something's not right.
We never need to check that in InstSimplify because we don't
create new instructions here.

These are all handled as icmp simplifies which then trigger
existing select simplifies, so there's no need to duplicate
a composite fold of the two.

llvm-svn: 326750
llvm/lib/Analysis/InstructionSimplify.cpp