[PATCH] D62703: [CVP] Simplify non-overflowing saturating add/sub
Nikita Popov via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri May 31 13:52:10 PDT 2019
nikic marked an inline comment as done.
nikic added inline comments.
================
Comment at: llvm/test/Transforms/CorrelatedValuePropagation/overflows.ll:834
+;
+ %add = call { <2 x i32>, <2 x i1> } @llvm.uadd.with.overflow.v2i32(<2 x i32> %a, <2 x i32> <i32 1, i32 1>)
+ ret { <2 x i32>, <2 x i1> } %add
----------------
lebedev.ri wrote:
> Hmm, great catch!
> I guess saturating vectors are rare since nobody hit this yet?
Assuming you meant vector overflow here, then yes: This is only supported since recently -- more or less a side effect of having to deal with vector addo/subo in SDAG for saturating math expansion, so might as well allow in IR. But looks like nobody has actually used this yet, otherwise they would have definitely run into this issue :)
Repository:
rL LLVM
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D62703/new/
https://reviews.llvm.org/D62703
More information about the llvm-commits
mailing list