This is an archive of the discontinued LLVM Phabricator instance.

[AMDGPU][MC] Added arg checks for vmcnt() expcnt() lgkmcnt() helpers
ClosedPublic

Authored by dp on Apr 26 2017, 10:41 AM.

Details

Summary

Summary of changes:

  • corrected vmcnt(), expcnt(), lgkmcnt() helpers to checks their argument for truncation;
  • added saturated versions of these helpers.

See bug 32711 for details: https://bugs.llvm.org//show_bug.cgi?id=32711

Diff Detail

Repository
rL LLVM

Event Timeline

dp created this revision.Apr 26 2017, 10:41 AM
vpykhtin accepted this revision.Apr 26 2017, 10:43 AM

LGTM, Thanks!

This revision is now accepted and ready to land.Apr 26 2017, 10:43 AM
This revision was automatically updated to reflect the committed changes.