Teach ComputeMaskedBits about nsw on add. I don't think there's anything we can
authorNick Lewycky <nicholas@mxc.ca>
Fri, 11 Mar 2011 09:00:19 +0000 (09:00 +0000)
committerNick Lewycky <nicholas@mxc.ca>
Fri, 11 Mar 2011 09:00:19 +0000 (09:00 +0000)
commitb69050a94c1c9266ab048a79c8375e5b14d87c72
treebf7c5218182894c05403125a704ce60ba3aa5b18
parent6fd2472b1b2d8f6a64b38874cbca95d3578e16a4
Teach ComputeMaskedBits about nsw on add. I don't think there's anything we can
do with nuw here, but sub and mul should be given similar treatment.
Fixes PR9343 #15!

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@127463 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Analysis/ValueTracking.cpp
test/Transforms/InstSimplify/compare.ll