We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e4572c6 commit 062bcf3Copy full SHA for 062bcf3
llvm/lib/Transforms/Scalar/GVNHoist.cpp
@@ -578,7 +578,7 @@ class GVNHoist {
578
579
// Returns true when the values are flowing out to each edge.
580
bool valueAnticipable(CHIArgs C, TerminatorInst *TI) const {
581
- if (TI->getNumSuccessors() > std::distance(C.begin(), C.end()))
+ if (TI->getNumSuccessors() > (unsigned)std::distance(C.begin(), C.end()))
582
return false; // Not enough args in this CHI.
583
584
for (auto CHI : C) {
0 commit comments