This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH][match-and-simplify] Remove broken duplicate pattern


Committed.

Richard.

2014-07-15  Richard Biener  <rguenther@suse.de>

	* match.pd: Remove duplicated and broken rotate pattern.

Index: gcc/match.pd
===================================================================
--- gcc/match.pd	(revision 212544)
+++ gcc/match.pd	(working copy)
@@ -351,15 +351,6 @@ along with GCC; see the file COPYING3.
   (lrotate @0 @1)))
 
 
-/* (x << CNT1) OP (x >> CNT2) -> x r<< CNT1 OP being +, |, ^ */
-(for op in plus bit_ior bit_xor 
-(match_and_simplify
-  (op:c (lshift @0 INTEGER_CST_P@1) (rshift @0 INTEGER_CST_P@2))
-  if (tree_fits_uhwi_p (@1) && tree_fits_uhwi_p (@2)
-      && tree_to_uhwi (@1) + tree_to_uhwi (@2) == TYPE_PRECISION (type))
-  (lrotate @0 @1)))
-
-
 /* ????s
 
    We cannot reasonably match vector CONSTRUCTORs or vector constants


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]