Chris Lattner f286f6fd93 Fix PR1850 by removing an unsafe transformation from VMCore/ConstantFold.cpp.
Reimplement the xform in Analysis/ConstantFolding.cpp where we can use
targetdata to validate that it is safe.  While I'm in there, fix some const
correctness issues and generalize the interface to the "operand folder".


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@44817 91177308-0d34-0410-b5e6-96231b3b80d8
2007-12-10 22:53:04 +00:00
..
2007-04-15 07:38:21 +00:00
2007-04-14 20:13:02 +00:00
2007-04-15 07:38:21 +00:00
2007-04-14 20:13:02 +00:00
2007-04-14 20:13:02 +00:00
2007-04-14 20:13:02 +00:00
2007-04-14 20:13:02 +00:00
2007-04-14 20:13:02 +00:00
2007-04-15 07:38:21 +00:00
2007-04-14 20:13:02 +00:00
2007-04-15 07:38:21 +00:00
2007-04-15 07:38:21 +00:00
2007-04-15 07:38:21 +00:00
2007-04-14 20:13:02 +00:00
2007-04-14 20:13:02 +00:00
2007-04-14 20:13:02 +00:00
2007-04-14 20:13:02 +00:00
2007-04-14 20:13:02 +00:00
2007-04-14 20:13:02 +00:00
2007-04-15 07:38:21 +00:00
2007-04-15 07:38:21 +00:00
2007-04-15 07:38:21 +00:00
2007-04-14 20:13:02 +00:00
2007-04-14 20:13:02 +00:00
2007-04-14 20:13:02 +00:00
2007-04-14 20:13:02 +00:00
2007-04-14 20:13:02 +00:00
2007-04-14 20:13:02 +00:00
2007-04-14 20:13:02 +00:00
2007-04-15 07:38:21 +00:00
2007-04-14 20:13:02 +00:00
2007-04-14 20:13:02 +00:00
2007-05-05 01:59:05 +00:00
2007-05-19 06:50:37 +00:00
2007-11-08 18:45:15 +00:00
2007-11-22 23:47:13 +00:00
2007-04-16 17:36:08 +00:00
2007-04-16 17:36:08 +00:00
2007-08-12 16:55:14 +00:00
2007-04-14 20:13:02 +00:00
2007-04-15 07:38:21 +00:00
2007-04-15 07:38:21 +00:00
2007-04-14 20:13:02 +00:00
2007-04-15 07:38:21 +00:00
2007-04-15 07:38:21 +00:00
2007-04-15 07:38:21 +00:00
2007-04-15 07:38:21 +00:00
2007-04-14 20:13:02 +00:00
2007-04-14 20:13:02 +00:00
2007-04-14 20:13:02 +00:00
2007-04-14 20:13:02 +00:00
2007-04-14 20:13:02 +00:00
2007-04-14 20:13:02 +00:00
2007-04-14 20:13:02 +00:00
2007-04-14 20:13:02 +00:00
2007-04-15 07:38:21 +00:00
2007-04-14 20:13:02 +00:00
2007-04-15 07:38:21 +00:00
2007-04-14 20:13:02 +00:00
2007-04-14 20:13:02 +00:00
2007-04-14 18:33:31 +00:00
2007-04-14 20:13:02 +00:00
2007-04-28 00:54:45 +00:00
2007-04-14 20:13:02 +00:00
2007-04-14 20:13:02 +00:00
2007-04-15 07:38:21 +00:00
2007-04-14 20:13:02 +00:00
2007-04-14 20:13:02 +00:00
2007-05-05 22:41:13 +00:00
2007-04-14 20:13:02 +00:00
2007-04-14 20:13:02 +00:00
2007-04-14 20:13:02 +00:00
2007-04-14 20:13:02 +00:00
2007-04-15 07:38:21 +00:00
2007-04-15 07:38:21 +00:00
2007-04-14 20:13:02 +00:00
2007-04-15 07:38:21 +00:00
2007-04-14 20:02:51 +00:00
2007-04-14 20:13:02 +00:00
2007-04-14 20:13:02 +00:00
2007-04-14 20:13:02 +00:00
2007-04-15 07:38:21 +00:00
2007-04-15 07:38:21 +00:00
2007-04-14 20:13:02 +00:00
2007-04-14 20:13:02 +00:00
2007-04-14 20:13:02 +00:00
2007-04-14 20:13:02 +00:00
2007-10-12 05:29:53 +00:00
2007-04-14 20:13:02 +00:00
2007-04-14 20:13:02 +00:00
2007-08-06 20:04:16 +00:00
2007-04-15 07:38:21 +00:00
2007-04-15 07:38:21 +00:00
2007-04-15 07:38:21 +00:00
2007-11-25 21:27:53 +00:00
2007-04-14 20:13:02 +00:00
2007-04-14 20:13:02 +00:00
2007-04-14 20:13:02 +00:00
2007-04-14 20:13:02 +00:00
2007-04-15 07:38:21 +00:00
2007-04-14 20:13:02 +00:00
2007-10-29 17:06:35 +00:00
2007-04-14 20:13:02 +00:00
2007-04-14 20:13:02 +00:00
2007-04-14 23:00:51 +00:00
2007-04-14 20:13:02 +00:00
2007-04-14 20:13:02 +00:00
2007-04-15 07:38:21 +00:00
2007-04-14 20:13:02 +00:00
2007-04-14 20:13:02 +00:00
2007-04-14 20:13:02 +00:00
2007-04-14 20:13:02 +00:00

This directory contains test cases for the instcombine transformation.  The
dated tests are actual bug tests, whereas the named tests are used to test
for features that the this pass should be capable of performing.