Coverity flagged an "Unchecked return value" issue.
I have investigated it and the isUndef function is constant with no arguments, only returning a value.
The function does make an assert, but it isn't relevant as next time Cond[1] is used is in the preserveCondRegFlags function which again calls isUndef on it this time using the return value.
As such the line is truly redundant and has been removed.
Details
Details
- Reviewers
arsenm - Commits
- rG232f0c9a9aa1: [NFC][AMDGPU] Remove redundant code
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo