This is an archive of the discontinued LLVM Phabricator instance.

AMDGPU/GlobalISel: Fix incorrect VOP3P fneg folding
ClosedPublic

Authored by arsenm on Feb 19 2020, 9:37 AM.

Details

Summary

We use some s32 values in VOP3P operands, and won't see any
intervening casts from a 32-bit fneg. Make sure it's really a packed
fneg before folding.

Diff Detail