Don't restrict the set of instructions where we try to constant-fold the
authorEli Friedman <eli.friedman@gmail.com>
Wed, 15 Jul 2009 22:13:34 +0000 (22:13 +0000)
committerEli Friedman <eli.friedman@gmail.com>
Wed, 15 Jul 2009 22:13:34 +0000 (22:13 +0000)
commitfd2934f190fc13b60f8e5dd9639008d721b170f8
tree016bf4fc8d33ec33dcdc6ad4fe5f705233d82622
parentf05522974b3c1b9dc2644831364e19d5132e751b
Don't restrict the set of instructions where we try to constant-fold the
operands; it's possible to end up with a constant-foldable operand to
most instructions, even those which can't trap.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@75845 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Scalar/InstructionCombining.cpp
test/Transforms/InstCombine/fold-bin-operand.ll [new file with mode: 0644]