This is an archive of the discontinued LLVM Phabricator instance.

[LV] Add abs/smin/smax/umin/umax intrinsics to isTriviallyVectorizable
ClosedPublic

Authored by craig.topper on Jul 28 2020, 1:39 PM.

Details

Summary

This patch adds support for vectorizing these intrinsics.

Diff Detail

Event Timeline

craig.topper created this revision.Jul 28 2020, 1:39 PM
Herald added a project: Restricted Project. · View Herald TranscriptJul 28 2020, 1:39 PM
Herald added a subscriber: hiraditya. · View Herald Transcript
craig.topper requested review of this revision.Jul 28 2020, 1:39 PM
arsenm added a subscriber: arsenm.Jul 28 2020, 1:43 PM
arsenm added inline comments.
llvm/test/Transforms/LoopVectorize/intrinsic.ll
1250

Probably should check the immediate operand value

Check the immediate on the vectorized abs intrinsic

spatel accepted this revision.Jul 29 2020, 4:32 AM

LGTM

This revision is now accepted and ready to land.Jul 29 2020, 4:32 AM