Corrected load folding check. We need to start from the root of the sub-dag
authorEvan Cheng <evan.cheng@apple.com>
Sat, 14 Oct 2006 08:33:25 +0000 (08:33 +0000)
committerEvan Cheng <evan.cheng@apple.com>
Sat, 14 Oct 2006 08:33:25 +0000 (08:33 +0000)
commit27e1fe9dab89388dfcb3985128d000e632fdc5f6
tree07f240a9068b36934846947f4bbbf137f2bac052
parentbddc5d04d7dd74ee570750bf59c694c4b7958053
Corrected load folding check. We need to start from the root of the sub-dag
being matched and ensure there isn't a non-direct path to the load (i.e. a
path that goes out of the sub-dag.)

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@30958 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/X86/X86ISelDAGToDAG.cpp