BoundsChecking: optimize out the check for offset < 0 if size is known to be >=...
authorNuno Lopes <nunoplopes@sapo.pt>
Tue, 3 Jul 2012 17:30:18 +0000 (17:30 +0000)
committerNuno Lopes <nunoplopes@sapo.pt>
Tue, 3 Jul 2012 17:30:18 +0000 (17:30 +0000)
commit42d80c7a5b369285c10c0dc4b2e025f7a65d635e
treee220c91a009529fa7d2192da7e6d959c1c135dea
parent0dff532fce434c3e9fdf9695aed8efeb5f752ed5
BoundsChecking: optimize out the check for offset < 0  if size is known to be >= 0 (signed).
(LLVM optimizers cannot do this optimization by themselves)

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@159668 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Scalar/BoundsChecking.cpp
test/Transforms/BoundsChecking/phi.ll