Dan Gohman 3bfbc4587a Teach lib/VMCore/ConstantFold.cpp how to set the inbounds keyword and
how to fold notionally-out-of-bounds array getelementptr indices instead
of just doing these in lib/Analysis/ConstantFolding.cpp, because it can
be done in a fairly general way without TargetData, and because not all
constants are visited by lib/Analysis/ConstantFolding.cpp. This enables
more constant folding.

Also, set the "inbounds" flag when the getelementptr indices are
one-past-the-end.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@81483 91177308-0d34-0410-b5e6-96231b3b80d8
2009-09-11 00:04:14 +00:00
..
2008-04-19 22:26:29 +00:00
2008-04-19 22:26:29 +00:00
2008-04-19 22:26:29 +00:00
2007-04-15 10:07:55 +00:00
2007-07-19 23:13:04 +00:00
2007-07-31 02:57:37 +00:00
2008-07-11 00:30:06 +00:00
2009-02-02 07:24:28 +00:00
2009-09-06 00:00:13 +00:00
2008-04-19 22:26:29 +00:00
2008-04-19 22:26:29 +00:00
2008-06-03 01:21:11 +00:00
2009-01-15 20:18:42 +00:00
2009-08-25 15:38:29 +00:00