This is an archive of the discontinued LLVM Phabricator instance.

[SLP] Preserve IR flags for extra args.
ClosedPublic

Authored by ABataev on Feb 28 2017, 12:25 AM.

Details

Summary

We should preserve IR flags for extra args. These IR flags should be
taken from original scalar operations, not from the reduction
operations.

Diff Detail

Repository
rL LLVM

Event Timeline

ABataev created this revision.Feb 28 2017, 12:25 AM
mkuper accepted this revision.Feb 28 2017, 4:59 PM

LGTM with some style nits.

lib/Transforms/Vectorize/SLPVectorizer.cpp
308 ↗(On Diff #89984)

Please change the name of the map to represent what it actually does.

4449 ↗(On Diff #89984)

Could you add a space here?

This revision is now accepted and ready to land.Feb 28 2017, 4:59 PM
This revision was automatically updated to reflect the committed changes.