Page MenuHomePhabricator

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

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

Details

Summary

This patch adds support for vectorizing these intrinsics.

Diff Detail

Event Timeline

craig.topper created this revision.Tue, Jul 28, 1:39 PM
Herald added a project: Restricted Project. · View Herald TranscriptTue, Jul 28, 1:39 PM
Herald added a subscriber: hiraditya. · View Herald Transcript
craig.topper requested review of this revision.Tue, Jul 28, 1:39 PM
arsenm added a subscriber: arsenm.Tue, Jul 28, 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.Wed, Jul 29, 4:32 AM

LGTM

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