stength reduce my previous patch a bit. The only instructions
authorChris Lattner <sabre@nondot.org>
Mon, 3 Jan 2011 18:43:03 +0000 (18:43 +0000)
committerChris Lattner <sabre@nondot.org>
Mon, 3 Jan 2011 18:43:03 +0000 (18:43 +0000)
commit10b883b13ff3ad44892758c7a57a435cdb379b45
tree4cb1cbe9525ca6d5c4357b83031295cf5bf56a0c
parenta12ba39a1d4d22c8c2d348f1397d52be58391177
stength reduce my previous patch a bit.  The only instructions
that are allowed to have metadata operands are intrinsic calls,
and the only ones that take metadata currently return void.
Just reject all void instructions, which should not be value
numbered anyway.  To future proof things, add an assert to the
getHashValue impl for calls to check that metadata operands
aren't present.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@122759 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Scalar/EarlyCSE.cpp