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