diff options
author | Nuno Lopes <nunoplopes@sapo.pt> | 2012-12-31 17:25:24 +0000 |
---|---|---|
committer | Nuno Lopes <nunoplopes@sapo.pt> | 2012-12-31 17:25:24 +0000 |
commit | a44766a4dd5783b2acfae83eb0428a19636cdd3a (patch) | |
tree | 039abcf9f643ddf0970e508a863c5ba23a3345fb /lib/Analysis | |
parent | 87b47ccc5afcdffb1fa7f04b27fca926ec7fb344 (diff) | |
download | external_llvm-a44766a4dd5783b2acfae83eb0428a19636cdd3a.zip external_llvm-a44766a4dd5783b2acfae83eb0428a19636cdd3a.tar.gz external_llvm-a44766a4dd5783b2acfae83eb0428a19636cdd3a.tar.bz2 |
minor code simplification
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@171306 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis')
-rw-r--r-- | lib/Analysis/MemoryBuiltins.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Analysis/MemoryBuiltins.cpp b/lib/Analysis/MemoryBuiltins.cpp index a565617..dd05c29 100644 --- a/lib/Analysis/MemoryBuiltins.cpp +++ b/lib/Analysis/MemoryBuiltins.cpp @@ -562,7 +562,7 @@ SizeOffsetType ObjectSizeOffsetVisitor::visitPHINode(PHINode &PHI) { SizeOffsetType ObjectSizeOffsetVisitor::visitSelectInst(SelectInst &I) { SizeOffsetType TrueSide = compute(I.getTrueValue()); SizeOffsetType FalseSide = compute(I.getFalseValue()); - if (bothKnown(TrueSide) && bothKnown(FalseSide) && TrueSide == FalseSide) + if (TrueSide == FalseSide) return TrueSide; return unknown(); } |