re PR middle-end/36194 (Truncation optimization in combine can remove necessary trunc...
authorAdam Nemet <anemet@caviumnetworks.com>
Thu, 15 May 2008 19:25:53 +0000 (19:25 +0000)
committerAdam Nemet <nemet@gcc.gnu.org>
Thu, 15 May 2008 19:25:53 +0000 (19:25 +0000)
commit36dafbd1f164e05181dceb8151ea62c0b50eb1a2
tree079188d9b1647cab153882c44eb6a6dd756a3fff
parentfda9d38f808e467c32a25199adf3c91c99c0518d
re PR middle-end/36194 (Truncation optimization in combine can remove necessary truncations)

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.

From-SVN: r135392
gcc/ChangeLog
gcc/combine.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/pr36194.c [new file with mode: 0644]