Commit ddd93587 by Thomas Preud'homme Committed by Thomas Preud'homme

Fix PR66168

From-SVN: r223795
parent 225f4747
2015-05-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
PR rtl-optimization/66168
* loop-invariant.c (move_invariant_reg): Pass dest rather than reg to
can_move_invariant_reg.
2015-05-27 John David Anglin <danglin@gcc.gnu.org>
PR target/66148
......
......@@ -1630,7 +1630,7 @@ move_invariant_reg (struct loop *loop, unsigned invno)
if (REG_P (reg))
regno = REGNO (reg);
if (!can_move_invariant_reg (loop, inv, reg))
if (!can_move_invariant_reg (loop, inv, dest))
{
reg = gen_reg_rtx_and_attrs (dest);
......
2015-05-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
PR rtl-optimization/66168
* gcc.c-torture/compile/pr66168.c: New test.
2015-05-27 Jeff Law <law@redhat.com>
PR target/39726
......
int a, b;
void
fn1 ()
{
for (;;)
{
for (b = 0; b < 3; b++)
{
char e[2];
char f = e[1];
a ^= f ? 1 / f : 0;
}
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment