OSDN Git Service

Fix a crash in which a multiplication was being reported as being both negative
authorDuncan Sands <baldrick@free.fr>
Wed, 23 Nov 2011 16:26:47 +0000 (16:26 +0000)
committerDuncan Sands <baldrick@free.fr>
Wed, 23 Nov 2011 16:26:47 +0000 (16:26 +0000)
commita8f5cd3539580b2fe3c20c748c1374f76992f113
tree4b6fa623e718b5472a01f35d839f2c2c3d874691
parentf238f50aaf8a68f16dcc43a017aa32cbb73e938e
Fix a crash in which a multiplication was being reported as being both negative
and positive: positive, because it could be directly computed to be positive;
negative, because the nsw flags means it is either negative or undefined (the
multiplication always overflowed).

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@145104 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Analysis/ValueTracking.cpp
test/Transforms/InstSimplify/2011-11-23-MaskedBitsCrash.ll [new file with mode: 0644]