This is an archive of the discontinued LLVM Phabricator instance.

AMDGPU: Fix v2f16 fneg/fabs pattern
ClosedPublic

Authored by arsenm on May 22 2018, 1:33 AM.

Details

Summary

The integer operation convertion for some reason only happens
if the source is a bitcast from an integer, which happens to
always be the situation when the result is loaded. Add
an additional pattern for when the source operation is really
an FP operation.

Diff Detail

Event Timeline

arsenm created this revision.May 22 2018, 1:33 AM
This revision is now accepted and ready to land.May 22 2018, 7:52 AM
arsenm closed this revision.May 22 2018, 1:21 PM

r333019