This is an archive of the discontinued LLVM Phabricator instance.

[AMDGPU] Fixed asan failure in SIFoldOperands
ClosedPublic

Authored by rampitec on Oct 25 2019, 1:43 PM.

Details

Summary

Both tryFoldOMod() and tryFoldClamp() remove original instruction,
so the check MI.modifiesRegister() may use a deleted MI.

Diff Detail

Event Timeline

rampitec created this revision.Oct 25 2019, 1:43 PM
Herald added a project: Restricted Project. · View Herald TranscriptOct 25 2019, 1:43 PM
arsenm accepted this revision.Oct 25 2019, 1:53 PM

LGTM

This revision is now accepted and ready to land.Oct 25 2019, 1:53 PM
This revision was automatically updated to reflect the committed changes.