This is an archive of the discontinued LLVM Phabricator instance.

[SDAG] Disable expansion of FMINNUM/FMAXNUM to SELECT_CC for vector operands
Needs ReviewPublic

Authored by sridhar_gopinath on Sep 15 2021, 1:05 PM.

Details

Reviewers
bogner
Summary

FMINNUM/FMAXNUM is expanded to SELECT_CC when there are no-NaNs. But this expansion is
incorrect for vector operands. This fix disables this expansion for vectors.

Diff Detail

Event Timeline

sridhar_gopinath requested review of this revision.Sep 15 2021, 1:05 PM
Herald added a project: Restricted Project. · View Herald TranscriptSep 15 2021, 1:05 PM

Why is it incorrect for vectors? Is possible to write a test for this?