Skip to content

Commit 3adf819

Browse files
committed
swap condition order
1 parent 37d10c3 commit 3adf819

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Transforms/InstCombine/InstCombineSelect.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3528,7 +3528,7 @@ static bool hasAffectedValue(Value *V, SmallPtrSetImpl<Value *> &Affected,
35283528

35293529
// Ignore the case where the select arm itself is affected. These cases
35303530
// are handled more efficiently by other optimizations.
3531-
if (Affected.contains(V) && Depth != 0)
3531+
if (Depth != 0 && Affected.contains(V))
35323532
return true;
35333533

35343534
if (auto *I = dyn_cast<Instruction>(V)) {

0 commit comments

Comments
 (0)