mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-19 11:02:59 +02:00
[LVI] Make a precondition explicit rather than handling a case which never happens [NFC]
llvm-svn: 267481
This commit is contained in:
parent
e8dd108465
commit
20e124aa1d
@ -1116,7 +1116,8 @@ bool LazyValueInfoCache::solveBlockValueBinaryOp(LVILatticeVal &BBLV,
|
||||
|
||||
bool getValueFromFromCondition(Value *Val, ICmpInst *ICI,
|
||||
LVILatticeVal &Result, bool isTrueDest) {
|
||||
if (ICI && isa<Constant>(ICI->getOperand(1))) {
|
||||
assert(ICI && "precondition");
|
||||
if (isa<Constant>(ICI->getOperand(1))) {
|
||||
if (ICI->isEquality() && ICI->getOperand(0) == Val) {
|
||||
// We know that V has the RHS constant if this is a true SETEQ or
|
||||
// false SETNE.
|
||||
|
Loading…
Reference in New Issue
Block a user