This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/36194] [4.2/4.3 Regression] Truncation optimization in combine can remove necessary truncations
- From: "nemet at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 19 May 2008 23:30:16 -0000
- Subject: [Bug middle-end/36194] [4.2/4.3 Regression] Truncation optimization in combine can remove necessary truncations
- References: <bug-36194-4297@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #5 from nemet at gcc dot gnu dot org 2008-05-19 23:30 -------
Subject: Bug 36194
Author: nemet
Date: Mon May 19 23:29:29 2008
New Revision: 135592
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=135592
Log:
PR middle-end/36194
* combine.c (check_conversion): Rename to check_promoted_subreg.
Don't call record_truncated_value from here.
(record_truncated_value): Turn it into a for_each_rtx callback.
(record_truncated_values): New function.
(combine_instructions): Call note_uses with
record_truncated_values. Change name of check_conversion to
check_promoted_subreg.
testsuite/
* gcc.dg/pr36194.c: New test.
Added:
branches/gcc-4_3-branch/gcc/testsuite/gcc.dg/pr36194.c
Modified:
branches/gcc-4_3-branch/gcc/ChangeLog
branches/gcc-4_3-branch/gcc/combine.c
branches/gcc-4_3-branch/gcc/testsuite/ChangeLog
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36194