llvm-6502/lib
Bill Wendling 1fb43c32ed The method of doing the matching with a 'select' instruction was wrong. The
original code was matching like this:

	if (match(A, m_Not(m_Value(B))))

B was already matched as a 'select' instruction. However, this isn't matching
what we think it's matching. It would match B as a 'Value', so basically
anything would match to it. In this case, a Constant matched. B was replaced
with a constant representation. And then the wrong value would be used in the
SelectInst::Create statement, causing a crash.

After thinking on this for a moment, and after Nick L. told me how the pattern
matching stuff was supposed to work, the solution was to match NOT an m_Value,
but an m_Select.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@58946 91177308-0d34-0410-b5e6-96231b3b80d8
2008-11-09 23:17:42 +00:00
..
Analysis Don't crash analyzing certain quadratics (addrec of {X,+,Y,+,1}). 2008-11-03 02:43:49 +00:00
Archive Initial support for the CMake build system. 2008-09-22 01:08:49 +00:00
AsmParser regenerate 2008-11-04 14:43:20 +00:00
Bitcode Make sure to set stdout to binary when writing bitcode files via 2008-10-23 19:37:34 +00:00
CodeGen Temporarily revert 58825, which breaks PPC bootstrap. 2008-11-09 06:48:10 +00:00
Debugger Initial support for the CMake build system. 2008-09-22 01:08:49 +00:00
ExecutionEngine Remove a InvalidateInstructionCache call with incorrect size. 2008-11-08 08:15:39 +00:00
Linker Make comments and code for QuietWarnings and QuietErrors 2008-10-25 17:57:20 +00:00
Support Overload AddInteger on int/long/long long instead of on int/int64_t, 2008-11-03 19:40:18 +00:00
System plug leakage of mutex data. pthread_mutex_destroy() doesnt free our malloc'ed memory. 2008-11-06 16:21:49 +00:00
Target Typo fix 2008-11-09 02:54:13 +00:00
Transforms The method of doing the matching with a 'select' instruction was wrong. The 2008-11-09 23:17:42 +00:00
VMCore Fix a use of an invalid iterator when -debug-pass=Details is used. 2008-11-06 21:57:17 +00:00
Makefile remove attribution from lib Makefiles. 2007-12-29 20:09:26 +00:00