This is an archive of the discontinued LLVM Phabricator instance.

[ARM][MVE][Intrinsics] Take abs() of VMINNMAQ, VMAXNMAQ intrinsics' first arguments.
ClosedPublic

Authored by MarkMurrayARM on Jan 16 2020, 3:26 AM.

Details

Summary

Fix VMINNMAQ, VMAXNMAQ intrinsics; BOTH arguments have the absolute values taken.

Diff Detail

Event Timeline

MarkMurrayARM created this revision.Jan 16 2020, 3:26 AM
Herald added projects: Restricted Project, Restricted Project. · View Herald TranscriptJan 16 2020, 3:26 AM
simon_tatham accepted this revision.Jan 16 2020, 3:43 AM

Hmm. Somewhere in the back of my head is a worry that we may miss an optimization opportunity in cases such as max(a, abs(b)) where value-range analysis tells us that a is known to be positive already.

But better a missed optimization than a correctness bug, of course! This patch LGTM.

This revision is now accepted and ready to land.Jan 16 2020, 3:43 AM
This revision was automatically updated to reflect the committed changes.