diff options
author | fjahanian <fjahanian@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-06-20 17:59:35 +0000 |
---|---|---|
committer | fjahanian <fjahanian@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-06-20 17:59:35 +0000 |
commit | eba9b5f1260409f8fedfd77e4a18d49ff80fdc50 (patch) | |
tree | cc5eff41893baddf4f356d0f4abc39561a3a63ef /gcc/combine.c | |
parent | d0ccc7c2ab6b0c6f4e8e4bac696d68549e1e7c0b (diff) | |
download | gcc-eba9b5f1260409f8fedfd77e4a18d49ff80fdc50.tar.gz |
PR 22077.
Oked by Roger Sayle.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@101211 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/combine.c')
-rw-r--r-- | gcc/combine.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gcc/combine.c b/gcc/combine.c index c4e6f95fa48..e10d29f7e81 100644 --- a/gcc/combine.c +++ b/gcc/combine.c @@ -5274,6 +5274,11 @@ simplify_set (rtx x) SUBST (SET_SRC (x), gen_rtx_COMPARE (compare_mode, op0, op1)); src = SET_SRC (x); } + else if (GET_MODE (op0) == compare_mode && op1 == const0_rtx) + { + SUBST(SET_SRC (x), op0); + src = SET_SRC (x); + } else { /* Otherwise, update the COMPARE if needed. */ |