------- Additional Comments From pinskia at gcc dot gnu dot org 2005-02-22 14:44 ------- If we changed the function in comment #0 like so: int f(int a) { a=(a|1)^1; return a; }
Fold should do this simplification. And likewise for comment #1 (which is just general case): int f(int a,int b) { a=(a|b) ^ b; return a; } -- What |Removed |Added ---------------------------------------------------------------------------- OtherBugsDependingO| |19987 nThis| | Component|rtl-optimization |tree-optimization http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19055