This is an archive of the discontinued LLVM Phabricator instance.

AMDGPU: Push fcanonicalize through partially constant build_vector
ClosedPublic

Authored by arsenm on Jul 31 2018, 4:13 AM.

Details

Reviewers
rampitec
nhaehnle
Summary

This usually avoids some re-packing code, and may
help find canonical sources.

Diff Detail

Event Timeline

arsenm created this revision.Jul 31 2018, 4:13 AM
rampitec added inline comments.Jul 31 2018, 9:02 AM
lib/Target/AMDGPU/SIISelLowering.cpp
6940

Mixing variable NumOps and static array size 2 if potentially messy. Nothing except 2 can come here right now given a check for v2f16, but I would suggest to do it uniformly, either use 2 here or use SmallVector.

arsenm updated this revision to Diff 158712.Aug 2 2018, 3:03 AM

Hard code 2

rampitec accepted this revision.Aug 2 2018, 10:07 AM

Remove now unused NumOps variable. Otherwise LGTM.

lib/Target/AMDGPU/SIISelLowering.cpp
6924

NumOps is unused now.

This revision is now accepted and ready to land.Aug 2 2018, 10:07 AM
arsenm closed this revision.Aug 6 2018, 3:32 PM
arsenm marked an inline comment as done.

r339072