projects
/
gcc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6ff9491
)
rtlanal.c (canonicalize_condition): Return 0 if final rtx does not have a conditional...
author
Aaron Sawdey
<acsawdey@gcc.gnu.org>
Tue, 2 Jan 2018 16:46:29 +0000
(10:46 -0600)
committer
Aaron Sawdey
<acsawdey@gcc.gnu.org>
Tue, 2 Jan 2018 16:46:29 +0000
(10:46 -0600)
* rtlanal.c (canonicalize_condition): Return 0 if final rtx
does not have a conditional at the top.
From-SVN: r256079
gcc/rtlanal.c
patch
|
blob
|
history
diff --git
a/gcc/rtlanal.c
b/gcc/rtlanal.c
index 6d50781a32c312e2e773ef0bb0d15b3ad8bcdaf9..e75ff103fcbf82df6ddcf9114ea6d06fd4741360 100644
(file)
--- a/
gcc/rtlanal.c
+++ b/
gcc/rtlanal.c
@@
-5693,7
+5693,11
@@
canonicalize_condition (rtx_insn *insn, rtx cond, int reverse,
if (CC0_P (op0))
return 0;
- return gen_rtx_fmt_ee (code, VOIDmode, op0, op1);
+ /* We promised to return a comparison. */
+ rtx ret = gen_rtx_fmt_ee (code, VOIDmode, op0, op1);
+ if (COMPARISON_P (ret))
+ return ret;
+ return 0;
}
/* Given a jump insn JUMP, return the condition that will cause it to branch