This is an archive of the discontinued LLVM Phabricator instance.

[SLP] Mark conditional ops of hor reduction SelectInst as Ignored + propagate IR flags.
AbandonedPublic

Authored by ABataev on Sep 12 2017, 1:00 PM.

Details

Summary

If the min/max horizontal reduction is found, compare operands of the
SelectInst are considered as instruction that externally use reduction
values. But they must be ignored and their operands must be replaced by
UndefValues.
Also, patch fixes propagation of IR flags. Vectorized compare
instructions did not inherit IR flags from the scalar instructions.

Event Timeline

ABataev created this revision.Sep 12 2017, 1:00 PM
ABataev abandoned this revision.Sep 18 2017, 12:27 PM