1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-19 19:12:56 +02:00

GlobalISel: Use & operator on KnownBits

Avoid repeating for zero and one
This commit is contained in:
Matt Arsenault 2020-08-27 12:32:49 -04:00
parent b3488037c4
commit 9b9f0675a4

View File

@ -292,8 +292,7 @@ void GISelKnownBits::computeKnownBitsImpl(Register R, KnownBits &Known,
computeKnownBitsImpl(MI.getOperand(2).getReg(), Known2, DemandedElts, computeKnownBitsImpl(MI.getOperand(2).getReg(), Known2, DemandedElts,
Depth + 1); Depth + 1);
// Only known if known in both the LHS and RHS. // Only known if known in both the LHS and RHS.
Known.One &= Known2.One; Known &= Known2;
Known.Zero &= Known2.Zero;
break; break;
} }
case TargetOpcode::G_FCMP: case TargetOpcode::G_FCMP: