Return null instead of false, as appropriate.

llvm-svn: 70054
This commit is contained in:
Dan Gohman 2009-04-25 17:28:45 +00:00
parent 5638e0d642
commit 1b5055ab7f
1 changed files with 3 additions and 3 deletions

View File

@ -1485,7 +1485,7 @@ Value *InstCombiner::SimplifyDemandedVectorElts(Value *V, APInt DemandedElts,
// Limit search depth.
if (Depth == 10)
return false;
return 0;
// If multiple users are using the root value, procede with
// simplification conservatively assuming that all elements
@ -1496,14 +1496,14 @@ Value *InstCombiner::SimplifyDemandedVectorElts(Value *V, APInt DemandedElts,
// the main instcombine process.
if (Depth != 0)
// TODO: Just compute the UndefElts information recursively.
return false;
return 0;
// Conservatively assume that all elements are needed.
DemandedElts = EltMask;
}
Instruction *I = dyn_cast<Instruction>(V);
if (!I) return false; // Only analyze instructions.
if (!I) return 0; // Only analyze instructions.
bool MadeChange = false;
APInt UndefElts2(VWidth, 0);