fix rdar://7653908, a crash on a case where we would fold a load
authorChris Lattner <sabre@nondot.org>
Tue, 16 Feb 2010 22:35:06 +0000 (22:35 +0000)
committerChris Lattner <sabre@nondot.org>
Tue, 16 Feb 2010 22:35:06 +0000 (22:35 +0000)
commit92d3ada814f33e3e1d10f0e5e3a15333b0cca849
treecdda73fc41184e35406bebc258a7cb2c3dff6f6c
parent55f9adf543156f918bebcab3924d4210099e20af
fix rdar://7653908, a crash on a case where we would fold a load
into a roundss intrinsic, producing a cyclic dag.  The root cause
of this is badness handling ComplexPattern nodes in the old dagisel
that I noticed through inspection.  Eliminate a copy of the of the
code that handled ComplexPatterns by making EmitChildMatchCode call
into EmitMatchCode.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@96408 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/X86/X86ISelDAGToDAG.cpp
test/CodeGen/X86/vec_ss_load_fold.ll
utils/TableGen/DAGISelEmitter.cpp
utils/TableGen/DAGISelMatcherGen.cpp