[Patch, vrp] Allow VRP type conversion folding only for widenings upto word mode
authorSenthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
Thu, 19 Nov 2015 17:30:24 +0000 (17:30 +0000)
committerJeff Law <law@gcc.gnu.org>
Thu, 19 Nov 2015 17:30:24 +0000 (10:30 -0700)
commit1014b6f54b75b690b81dfac4b284961c2fb51646
treec46d7a664854f1eb101011a8c8f91af5e052887e
parent04a9bb6ec35a925ec15fcaafe16124748c3bfcc9
[Patch, vrp] Allow VRP type conversion folding only for widenings upto word mode

* tree.h (desired_pro_or_demotion_p): New function.
* tree-vrp.c (simplify_cond_using_ranges): Call it.

* gcc.dg/tree-ssa/vrp98.c: New testcase.
* gcc.target/avr/uint8-single-reg.c: New testcase.

From-SVN: r230618
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/tree-ssa/vrp98.c [new file with mode: 0644]
gcc/testsuite/gcc.target/avr/uint8-single-reg.c [new file with mode: 0644]
gcc/tree-vrp.c
gcc/tree.h