[PATCH] D47831: [DAGCombiner] Recognize more patterns for ABS

Simon Pilgrim via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Jun 8 06:17:49 PDT 2018


RKSimon added reviewers: jmolloy, rengolin.
RKSimon added subscribers: rengolin, jmolloy.
RKSimon added inline comments.


================
Comment at: lib/Target/ARM/ARMInstrNEON.td:5399
+def : Pat<(v2i64 (abs (sub (zext (v2i32 DPR:$opA)), (zext (v2i32 DPR:$opB))))),
+          (VABDLuv2i64 DPR:$opA, DPR:$opB)>;
+
----------------
kparzysz wrote:
> RKSimon wrote:
> > Is there existing test coverage for these?
> test/CodeGen/ARM/neon_vabs.ll failed without those.  I think the patterns above it will no longer be triggered actually, but I didn't want to remove them.
@jmolloy @rengolin Any thoughts?


Repository:
  rL LLVM

https://reviews.llvm.org/D47831





More information about the llvm-commits mailing list