diff options
author | dberlin <dberlin@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-12-11 22:50:35 +0000 |
---|---|---|
committer | dberlin <dberlin@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-12-11 22:50:35 +0000 |
commit | 3d236665245a6e17df6ffef3509fb709120b3a00 (patch) | |
tree | c9a23b212b7b02662a8b2ecf6e8d0b4a893fd3fc /gcc/sched-rgn.c | |
parent | 713c00d6e9a38f64b81a98e60b5533cf75d5602d (diff) | |
download | gcc-3d236665245a6e17df6ffef3509fb709120b3a00.tar.gz |
2001-12-11 Daniel Berlin <dan@cgsoftware.com>
* sched-rgn.c (CONST_BASED_ADDRESS_P): CONST_INT -> CONSTANT_P.
(may_trap_exp): Stores only are risk if they trap, too, not just
if code == MEM.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@47900 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/sched-rgn.c')
-rw-r--r-- | gcc/sched-rgn.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc/sched-rgn.c b/gcc/sched-rgn.c index cc3fc9ae05e..ab5adee8159 100644 --- a/gcc/sched-rgn.c +++ b/gcc/sched-rgn.c @@ -1566,8 +1566,8 @@ enum INSN_TRAP_CLASS (GET_CODE (x) == REG \ || ((GET_CODE (x) == PLUS || GET_CODE (x) == MINUS \ || (GET_CODE (x) == LO_SUM)) \ - && (GET_CODE (XEXP (x, 0)) == CONST_INT \ - || GET_CODE (XEXP (x, 1)) == CONST_INT))) + && (CONSTANT_P (XEXP (x, 0)) \ + || CONSTANT_P (XEXP (x, 1))))) /* Turns on the fed_by_spec_load flag for insns fed by load_insn. */ @@ -1738,7 +1738,7 @@ may_trap_exp (x, is_store) code = GET_CODE (x); if (is_store) { - if (code == MEM) + if (code == MEM && may_trap_p (x)) return TRAP_RISKY; else return TRAP_FREE; |