minor cleanups

llvm-svn: 63477
This commit is contained in:
Chris Lattner 2009-01-31 07:26:06 +00:00
parent 94cfb281c3
commit 585cfb2ce7
1 changed files with 3 additions and 3 deletions

View File

@ -796,7 +796,7 @@ bool InstCombiner::SimplifyDemandedBits(Value *V, APInt DemandedMask,
// just set the DemandedMask to all bits.
DemandedMask = APInt::getAllOnesValue(BitWidth);
} else if (DemandedMask == 0) { // Not demanding any bits from V.
if (V != UndefValue::get(VTy))
if (!isa<UndefValue>(V))
return UpdateValueUsesWith(V, UndefValue::get(VTy));
return false;
} else if (Depth == 6) { // Limit search depth.