Go to file
Chris Lattner 8ed7bef409 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!

llvm-svn: 84739
2009-10-21 04:11:19 +00:00
clang Prep work to always preallocate BlockDeclRefExprs so that we can 2009-10-21 03:49:08 +00:00
compiler-rt Comment out broken tests and make the rest build in cmake build system. 2009-10-17 10:19:32 +00:00
llvm make GVN work better when TD is not around: 2009-10-21 04:11:19 +00:00