Just as its not safe to blindly transfer the nsw bit from an add
authorDan Gohman <gohman@apple.com>
Tue, 29 Jun 2010 01:41:41 +0000 (01:41 +0000)
committerDan Gohman <gohman@apple.com>
Tue, 29 Jun 2010 01:41:41 +0000 (01:41 +0000)
commit7a64257f94202b1416bbd4981ada9076af273ee3
tree0a9507f903d46e25ec6052c646a508dac748b8bb
parentb22dc70a5c493d40fcfcebb47fffb9f2f223fa4b
Just as its not safe to blindly transfer the nsw bit from an add
instruction to an add scev, it's not safe to blindly transfer the
inbounds flag from a gep instruction to an nsw on the scev for the
gep.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@107117 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Analysis/ScalarEvolution.cpp