[llvm-commits] [llvm] r171308 - /llvm/trunk/lib/Analysis/MemoryBuiltins.cpp
Nuno Lopes
nunoplopes at sapo.pt
Mon Dec 31 10:01:36 PST 2012
Author: nlopes
Date: Mon Dec 31 12:01:36 2012
New Revision: 171308
URL: http://llvm.org/viewvc/llvm-project?rev=171308&view=rev
Log:
revert r171306, since we cannot compare APInts with different bitwidths
Modified:
llvm/trunk/lib/Analysis/MemoryBuiltins.cpp
Modified: llvm/trunk/lib/Analysis/MemoryBuiltins.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Analysis/MemoryBuiltins.cpp?rev=171308&r1=171307&r2=171308&view=diff
==============================================================================
--- llvm/trunk/lib/Analysis/MemoryBuiltins.cpp (original)
+++ llvm/trunk/lib/Analysis/MemoryBuiltins.cpp Mon Dec 31 12:01:36 2012
@@ -562,7 +562,7 @@
SizeOffsetType ObjectSizeOffsetVisitor::visitSelectInst(SelectInst &I) {
SizeOffsetType TrueSide = compute(I.getTrueValue());
SizeOffsetType FalseSide = compute(I.getFalseValue());
- if (TrueSide == FalseSide)
+ if (bothKnown(TrueSide) && bothKnown(FalseSide) && TrueSide == FalseSide)
return TrueSide;
return unknown();
}
More information about the llvm-commits
mailing list