Skip to content
Snippets Groups Projects
Commit c457fcec authored by Roger Sayle's avatar Roger Sayle Committed by Roger Sayle
Browse files

re PR tree-optimization/14752 ([tree-ssa] "~a" should be changed to "a" if...

re PR tree-optimization/14752 ([tree-ssa] "~a" should be changed to "a" if used in the condition of an if statement)


	PR middle-end/14752
	* c-common.c (c_common_truthvalue_conversion) <MINUS_EXPR,
	BIT_XOR_EXPR, BIT_AND_EXPR>: Delete.  Let fold optimize these
	cases via the construction of "expr != 0".

	* gcc.dg/fold-eqandshift-2.c: New test case.

From-SVN: r111575
parent 63292ebf
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment