Check for !isa<Constant> instead of isa<Instruction>. This
authorDan Gohman <gohman@apple.com>
Tue, 4 Aug 2009 23:23:56 +0000 (23:23 +0000)
committerDan Gohman <gohman@apple.com>
Tue, 4 Aug 2009 23:23:56 +0000 (23:23 +0000)
commit3fe14bf15338866b21784a64b78e53b5801523c8
tree494f028bf1bdbca46fd621ba0b5f30f6f3d081ff
parentf363bc83260b68aecc377da0b383c369ffd99b1e
Check for !isa<Constant> instead of isa<Instruction>. This
matches what the comment says, and it avoids spurious BitCast
instructions for Argument values.

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