This is an archive of the discontinued LLVM Phabricator instance.

[SLP] Preserve IR flags when vectorizing horizontal reductions.
ClosedPublic

Authored by ABataev on Feb 27 2017, 11:12 AM.

Details

Summary

The SLP vectorizer should propagate IR-level optimization hints/flags
(nsw, nuw, exact, fast-math) when converting scalar horizontal
reductions instructions into vectors, just like for other vectorized
instructions.
It doe not include IR propagation for extra arguments, we need to handle
original scalar operations for extra args to propagate correct flags.

Event Timeline

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

LGTM

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.