[PATCH] D21372: [ARM] Lower (select_cc k k (select_cc ~k ~k x)) into (SSAT l_k x)
Pablo Barrio via llvm-commits
llvm-commits at lists.llvm.org
Wed Jun 15 04:17:23 PDT 2016
pbarrio created this revision.
pbarrio added reviewers: mcrosier, jmolloy.
pbarrio added a subscriber: llvm-commits.
Herald added subscribers: rengolin, aemerson.
SSAT saturates an integer, making sure that its value lies within
an interval [-k, k]. Since the constant is given to SSAT as the
number of bytes set to one, k + 1 must be a power of 2, otherwise
the optimization is not possible. Also, the select_cc must use <
and > respectively so that they define an interval.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 14098 bytes
Desc: not available
More information about the llvm-commits