diff options
| author | rth <rth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-08-05 16:12:16 +0000 |
|---|---|---|
| committer | rth <rth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-08-05 16:12:16 +0000 |
| commit | 5b2686e66a6a147680082e9dc2877e26b5f4233e (patch) | |
| tree | 60bd0ca4e7f764847869d9dfdd98a38190735d4b | |
| parent | e10cb373fe605ba97dfded34d1bfa7c900b648f6 (diff) | |
| download | ppe42-gcc-5b2686e66a6a147680082e9dc2877e26b5f4233e.tar.gz ppe42-gcc-5b2686e66a6a147680082e9dc2877e26b5f4233e.zip | |
PR rtl-opt/49982
* expr.c (fixup_args_size_notes): Look through no-op moves.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@177464 138bc75d-0d04-0410-961f-82ee72b054a4
| -rw-r--r-- | gcc/ChangeLog | 6 | ||||
| -rw-r--r-- | gcc/expr.c | 4 |
2 files changed, 10 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 1b5cd35bc30..74f634a444d 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2011-08-05 Kaz Kojima <kkojima@gcc.gnu.org> + Richard Henderson <rth@redhat.com> + + PR rtl-opt/49982 + * expr.c (fixup_args_size_notes): Look through no-op moves. + 2011-08-05 Uros Bizjak <ubizjak@gmail.com> * config/i386/i386.md (*push<mode>2): Use "o" constraint instead diff --git a/gcc/expr.c b/gcc/expr.c index e5bec34e78c..f170596d330 100644 --- a/gcc/expr.c +++ b/gcc/expr.c @@ -3631,6 +3631,10 @@ fixup_args_size_notes (rtx prev, rtx last, int end_args_size) && XEXP (SET_SRC (set), 0) == stack_pointer_rtx && CONST_INT_P (XEXP (SET_SRC (set), 1))) this_delta = INTVAL (XEXP (SET_SRC (set), 1)); + /* ??? Reload can generate no-op moves, which will be cleaned + up later. Recognize it and continue searching. */ + else if (rtx_equal_p (dest, SET_SRC (set))) + this_delta = 0; else saw_unknown = true; } |

