This is an archive of the discontinued LLVM Phabricator instance.

[NVPTX] Fixed invalid use of immediate arguments for .f16x2 instructions.
ClosedPublic

Authored by tra on Feb 23 2017, 1:19 PM.

Details

Summary

This is a minor change on top of D30057 which fixes a bug that got fixed after D30057 was approved.

Previously (in D30057) ReplaceUses() resulted in a constant being passed as an
immediate argument to an .f16x2 instruction which does not accept
them. It also triggers a crash in ptxas.

This patch moves handling of constant v2f16 BUILD_VECTOR to lowering phase
which allows instruction selection to work correctly.

Event Timeline

tra created this revision.Feb 23 2017, 1:19 PM
jlebar accepted this revision.Feb 23 2017, 1:50 PM
This revision is now accepted and ready to land.Feb 23 2017, 1:50 PM
tra closed this revision.Feb 23 2017, 2:56 PM

Landed as part of rL296032: [NVPTX] Added support for .f16x2 instructions.