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.
Details
Details
- Reviewers
arsenm - Commits
- rGf2e7679d0f0b: [AMDGPU] Removed dead code from R600ISelLowering.cpp
Diff Detail
Diff Detail
Event Timeline
Comment Actions
@rampitec This buildbot at least can still reproduce it: http://lab.llvm.org:8011/builders/ppc64le-lld-multistage-test/builds/7216/steps/build-stage1-unified-tree/logs/warnings%20%282%29
Comment Actions
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.