Commit 15448afc by Richard Kenner

(simplify_rtx): In code that attempts to simplify conditional expressions...

(simplify_rtx): In code that attempts to simplify conditional
expressions, if the result is an NE around another comparison, return
the original expression.

From-SVN: r10428
parent 15a7a8ec
...@@ -3057,6 +3057,9 @@ simplify_rtx (x, op0_mode, last, in_dest) ...@@ -3057,6 +3057,9 @@ simplify_rtx (x, op0_mode, last, in_dest)
rtx cop1 = const0_rtx; rtx cop1 = const0_rtx;
enum rtx_code cond_code = simplify_comparison (NE, &cond, &cop1); enum rtx_code cond_code = simplify_comparison (NE, &cond, &cop1);
if (cond_code == NE && GET_RTX_CLASS (GET_CODE (cond)) == '<')
return x;
/* Simplify the alternative arms; this may collapse the true and /* Simplify the alternative arms; this may collapse the true and
false arms to store-flag values. */ false arms to store-flag values. */
true = subst (true, pc_rtx, pc_rtx, 0, 0); true = subst (true, pc_rtx, pc_rtx, 0, 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