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 4b676e1 commit 23a26e7Copy full SHA for 23a26e7
llvm/lib/Transforms/Scalar/DFAJumpThreading.cpp
@@ -502,10 +502,8 @@ struct MainSwitch {
502
void addToQueue(Value *Val, BasicBlock *BB,
503
std::deque<std::pair<Value *, BasicBlock *>> &Q,
504
SmallSet<Value *, 16> &SeenValues) {
505
- if (SeenValues.contains(Val))
506
- return;
507
- Q.push_back({Val, BB});
508
- SeenValues.insert(Val);
+ if (SeenValues.insert(Val).second)
+ Q.push_back({Val, BB});
509
}
510
511
bool isValidSelectInst(SelectInst *SI) {
0 commit comments