Skip to content
Snippets Groups Projects
  • Roger Sayle's avatar
    c457fcec
    re PR tree-optimization/14752 ([tree-ssa] "~a" should be changed to "a" if... · c457fcec
    Roger Sayle authored
    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
    c457fcec
    History
    re PR tree-optimization/14752 ([tree-ssa] "~a" should be changed to "a" if...
    Roger Sayle authored
    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