HomePhabricator

[CVP] @llvm.[us]{min,max}() intrinsics handling

Authored by lebedev.ri on Sat, Apr 10, 2:23 PM.

Description

[CVP] @llvm.[us]{min,max}() intrinsics handling

If we can tell that either one of the arguments is taken,
bypass the intrinsic.

Notably, we are indeed fine with non-strict predicate:

Much like with all other comparison handling in CVP,
while we could sort-of handle two Value's,
at least for plain ICmpInst it does not appear to be worthwhile.

This only fires 78 times on test-suite + dt + rs,
but we don't canonicalize to these yet. (only SCEV produces them)

Details

Committed
lebedev.riSat, Apr 10, 2:33 PM
Parents
rGd610f0510451: [NFC][CVP] Add tests for @llvm.[us]{min,max}() intrinsics
Branches
Unknown
Tags
Unknown