mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-19 19:12:56 +02:00
Return null instead of false, as appropriate.
llvm-svn: 70054
This commit is contained in:
parent
a7fae1f865
commit
d13f1a3b59
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user