re PR rtl-optimization/64616 (Redundant ldr when accessing var inside and outside a loop)
2015-05-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
gcc/
PR rtl-optimization/64616
* loop-invariant.c (can_move_invariant_reg): New.
(move_invariant_reg): Call above new function to decide whether
instruction can just be moved, skipping creation of temporary
register.
gcc/testsuite/
PR rtl-optimization/64616
* gcc.dg/loop-8.c: New test.
* gcc.dg/loop-9.c: New test.