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

Revert "GlobalISel: Use & operator on KnownBits"

This reverts commit e53b799779b079a70f600e5cad2ab7267d66b1b7.

Confusingly, this does not simply and the two sets of known bits, but
implements known bits for the and operator.
This commit is contained in:
Matt Arsenault 2020-08-27 18:41:02 -04:00
parent 2df7657efb
commit bb532337e4

View File

@ -110,7 +110,8 @@ void GISelKnownBits::computeKnownBitsMin(Register Src0, Register Src1,
computeKnownBitsImpl(Src0, Known2, DemandedElts, Depth);
// Only known if known in both the LHS and RHS.
Known &= Known2;
Known.Zero &= Known.Zero;
Known.One &= Known.One;
}
void GISelKnownBits::computeKnownBitsImpl(Register R, KnownBits &Known,