llvm-6502/lib/Transforms
Chris Lattner a52fce49eb make GVN work better when TD is not around:
"In the existing code, if the load and the value to replace it with are
of different types *and* target data is available, it tries to use the
target data to coerce the replacement value to the type of the load.
Otherwise, it skips all effort to handle the type mismatch and just
feeds the wrongly-typed replacement value to replaceAllUsesWith, which
triggers an assertion.

The patch replaces it with an outer if checking for type mismatch, and
an inner if-else that checks whether target data is available and, if
not, returns false rather than trying to replace the load."

Patch by Kenneth Uildriks!



git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@84739 91177308-0d34-0410-b5e6-96231b3b80d8
2009-10-21 04:11:19 +00:00
..
Hello Use raw_ostream::write_escaped instead of EscapeString. 2009-10-17 20:43:19 +00:00
Instrumentation Introduce and use convenience methods for getting pointer types 2009-10-06 15:40:36 +00:00
IPO Do not remove dead metadata for now. 2009-10-21 02:21:34 +00:00
Scalar make GVN work better when TD is not around: 2009-10-21 04:11:19 +00:00
Utils alternate fix for PR5258 which avoids worklist problems, with reduced testcase. 2009-10-20 20:27:49 +00:00
Makefile The attached patches attempt to fix cross builds. For example, if you 2009-08-18 00:40:33 +00:00