diff options
author | Dan Gohman <gohman@apple.com> | 2009-04-25 17:28:45 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2009-04-25 17:28:45 +0000 |
commit | d5f85af5c0825311f45129ace24d48d708047f6e (patch) | |
tree | ae0a29fa179cbbe6983aa67fa8f375780ffcc525 /lib | |
parent | 7934d5900c6e830dcdf68575f3b14d9a4085f902 (diff) | |
download | external_llvm-d5f85af5c0825311f45129ace24d48d708047f6e.zip external_llvm-d5f85af5c0825311f45129ace24d48d708047f6e.tar.gz external_llvm-d5f85af5c0825311f45129ace24d48d708047f6e.tar.bz2 |
Return null instead of false, as appropriate.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@70054 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Transforms/Scalar/InstructionCombining.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/Transforms/Scalar/InstructionCombining.cpp b/lib/Transforms/Scalar/InstructionCombining.cpp index c8cdc4c..eebac00 100644 --- a/lib/Transforms/Scalar/InstructionCombining.cpp +++ b/lib/Transforms/Scalar/InstructionCombining.cpp @@ -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); |