diff options
author | rearnsha <rearnsha@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-08-30 01:28:22 +0000 |
---|---|---|
committer | rearnsha <rearnsha@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-08-30 01:28:22 +0000 |
commit | d87bddc5dd48c99b14486f97e37019cdf7d76f87 (patch) | |
tree | 7d427e66a29f33dff1bdbd848761855b0e7aaf82 /gcc/sched-deps.c | |
parent | fa52acf483d032e8f80f8a09efb51eb291cc8127 (diff) | |
download | gcc-d87bddc5dd48c99b14486f97e37019cdf7d76f87.tar.gz |
* sched-deps.c (get_condition): Fix breakage in previous patch.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@86748 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/sched-deps.c')
-rw-r--r-- | gcc/sched-deps.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/gcc/sched-deps.c b/gcc/sched-deps.c index 18f3d39a9c0..2c551cfabfb 100644 --- a/gcc/sched-deps.c +++ b/gcc/sched-deps.c @@ -141,7 +141,7 @@ static rtx get_condition (rtx insn) { rtx pat = PATTERN (insn); - rtx cond; + rtx src; if (pat == 0) return 0; @@ -152,11 +152,12 @@ get_condition (rtx insn) if (!any_condjump_p (insn) || !onlyjump_p (insn)) return 0; - cond = XEXP (SET_SRC (pc_set (insn)), 0); - if (XEXP (cond, 2) == pc_rtx) - return cond; - else if (XEXP (cond, 1) == pc_rtx) + src = SET_SRC (pc_set (insn)); + if (XEXP (src, 2) == pc_rtx) + return XEXP (src, 0); + else if (XEXP (src, 1) == pc_rtx) { + rtx cond = XEXP (src, 0); enum rtx_code revcode = reversed_comparison_code (cond, insn); if (revcode == UNKNOWN) |