Issue |
129841
|
Summary |
Dead code in MLRegAllocEvictAdvisor.cpp
|
Labels |
mlgo
|
Assignees |
|
Reporter |
abhishek-kaushik22
|
In [MLRegAllocEvictAdvisor.cpp](https://github.com/llvm/llvm-project/blob/main/llvm/lib/CodeGen/MLRegAllocEvictAdvisor.cpp#L862-L874), the condition `if (CandidatePos == CandidateVirtRegPos)` is checked twice but the first time it's true, the function returns making the second condition check unnecessary.
@boomanaiden154 can you please take a look because this was introduced in 00f692b94f9aa08ede4aaba6f2aafe17857599c4
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs