Hi!
When stmt1 is a byte store instead of memcpy, ptr1 can be
something that is not is_gimple_val. Fixed thusly, bootstrapped/regtested
on x86_64-linux and i686-linux. Ok for trunk?
Alternatively the conditional could be left out, as force_gimple_operand_gsi
will do nothing if it is is_gimple_val already (but will call is_gimple_val
twice and a couple of other checks).
2010-11-15 Jakub Jelinek<jakub@redhat.com>
PR tree-optimization/46461
* tree-ssa-forwprop.c (simplify_builtin_call): Ensure ptr1 is
a gimple val.
* gcc.c-torture/compile/pr46461.c: New test.