mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-02-26 15:28:12 +00:00
GlobalISel: Use & operator on KnownBits
Avoid repeating for zero and one
This commit is contained in:
parent
b3488037c4
commit
9b9f0675a4
@ -292,8 +292,7 @@ void GISelKnownBits::computeKnownBitsImpl(Register R, KnownBits &Known,
|
||||
computeKnownBitsImpl(MI.getOperand(2).getReg(), Known2, DemandedElts,
|
||||
Depth + 1);
|
||||
// Only known if known in both the LHS and RHS.
|
||||
Known.One &= Known2.One;
|
||||
Known.Zero &= Known2.Zero;
|
||||
Known &= Known2;
|
||||
break;
|
||||
}
|
||||
case TargetOpcode::G_FCMP:
|
||||
|
Loading…
x
Reference in New Issue
Block a user