This is an archive of the discontinued LLVM Phabricator instance.

[AMDGPU] Removed dead code from R600ISelLowering.cpp
ClosedPublic

Authored by rampitec on Nov 5 2019, 11:27 AM.

Details

Summary

This was added to inhibit a warning from gcc 7.3 according to
the comment. However, it triggers warning from PVS. In addition
I cannot reproduce it with gcc 7.4 and I also cannot reproduce
it with gcc 7.3 using compiler explorer.

Diff Detail

Event Timeline

rampitec created this revision.Nov 5 2019, 11:27 AM
Herald added a project: Restricted Project. · View Herald TranscriptNov 5 2019, 11:27 AM
arsenm accepted this revision.Nov 5 2019, 11:37 AM
This revision is now accepted and ready to land.Nov 5 2019, 11:37 AM
This revision was automatically updated to reflect the committed changes.

What version of gcc does it use? It is a clear misreport from gcc, and I don't see the warning from gcc 7.4.0, where the other analyzer correctly detects removed statement as a dead code. I.e. looks like that gcc version is buggy but eventually will be replaced by a more fresh version.