This is an archive of the discontinued LLVM Phabricator instance.

[AMDGPU][ConstantFolding] Fold llvm.amdgcn.fmul.legacy intrinsic
ClosedPublic

Authored by foad on Feb 19 2020, 7:19 AM.

Diff Detail

Event Timeline

foad created this revision.Feb 19 2020, 7:19 AM
Herald added a project: Restricted Project. · View Herald TranscriptFeb 19 2020, 7:19 AM
arsenm added inline comments.Feb 19 2020, 7:22 AM
llvm/test/Transforms/ConstProp/amdgpu.ll
2

You can test this just by running -instsimplify? This also should go in an AMDGPU test specific directory (although technically you don't need that right now)

foad updated this revision to Diff 245404.Feb 19 2020, 7:48 AM

Move test.

foad updated this revision to Diff 245406.Feb 19 2020, 7:52 AM

Add lit.local.cfg.

arsenm accepted this revision.Feb 19 2020, 7:57 AM

LGTM. I would name the test file fmul_legacy.ll to be clearer

This revision is now accepted and ready to land.Feb 19 2020, 7:57 AM
This revision was automatically updated to reflect the committed changes.