Commit a7c75343 by Jakub Jelinek Committed by Jakub Jelinek

re PR lto/64025 (Several testsuite execution failures with -O2 -flto…

re PR lto/64025 (Several testsuite execution failures with -O2 -flto -fuse-linker-plugin -fno-fat-lto-objects)

	PR lto/64025
	* alias.c (find_base_term): Use std::swap.  Prefer tmp2
	if it is CONSTANT_P other than CONST_INT.

From-SVN: r218119
parent 84593a48
2014-11-27 Jakub Jelinek <jakub@redhat.com>
PR lto/64025
* alias.c (find_base_term): Use std::swap. Prefer tmp2
if it is CONSTANT_P other than CONST_INT.
2014-11-27 Thomas Preud'homme <thomas.preudhomme@arm.com> 2014-11-27 Thomas Preud'homme <thomas.preudhomme@arm.com>
PR target/59593 PR target/59593
...@@ -1748,11 +1748,11 @@ find_base_term (rtx x) ...@@ -1748,11 +1748,11 @@ find_base_term (rtx x)
if (REG_P (tmp1) && REG_POINTER (tmp1)) if (REG_P (tmp1) && REG_POINTER (tmp1))
; ;
else if (REG_P (tmp2) && REG_POINTER (tmp2)) else if (REG_P (tmp2) && REG_POINTER (tmp2))
{ std::swap (tmp1, tmp2);
rtx tem = tmp1; /* If second argument is constant which has base term, prefer it
tmp1 = tmp2; over variable tmp1. See PR64025. */
tmp2 = tem; else if (CONSTANT_P (tmp2) && !CONST_INT_P (tmp2))
} std::swap (tmp1, tmp2);
/* Go ahead and find the base term for both operands. If either base /* Go ahead and find the base term for both operands. If either base
term is from a pointer or is a named object or a special address term is from a pointer or is a named object or a special address
......
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