2017-11-23 Marc Glisse <marc.glisse@inria.fr>
* match.pd (ptr-0): New transformation.
From-SVN: r255113
+2017-11-23 Marc Glisse <marc.glisse@inria.fr>
+
+ * match.pd (ptr-0): New transformation.
+
2017-11-23 Charles Baylis <charles.baylis@linaro.org>
* config/arm/arm-protos.h (enum arm_addr_mode_op): New.
(pointer_plus integer_zerop @1)
(non_lvalue (convert @1)))
+/* ptr - 0 -> (type)ptr */
+(simplify
+ (pointer_diff @0 integer_zerop)
+ (convert @0))
+
/* See if ARG1 is zero and X + ARG1 reduces to X.
Likewise if the operands are reversed. */
(simplify