aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2009-04-25 17:28:45 +0000
committerDan Gohman <gohman@apple.com>2009-04-25 17:28:45 +0000
commit2fe4d0aacbc810a4e3838335648aef1f59bb0646 (patch)
treeae0a29fa179cbbe6983aa67fa8f375780ffcc525 /lib
parent1c8491ecc768c410a552bc3441e456fedc2736ff (diff)
downloadexternal_llvm-2fe4d0aacbc810a4e3838335648aef1f59bb0646.zip
external_llvm-2fe4d0aacbc810a4e3838335648aef1f59bb0646.tar.gz
external_llvm-2fe4d0aacbc810a4e3838335648aef1f59bb0646.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.cpp6
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);