Recommit the fix for rdar://9289512 with a couple tweaks to
authorChris Lattner <sabre@nondot.org>
Fri, 22 Apr 2011 21:59:37 +0000 (21:59 +0000)
committerChris Lattner <sabre@nondot.org>
Fri, 22 Apr 2011 21:59:37 +0000 (21:59 +0000)
commitb686af053e6544191420978f6a3adc7e74ab0192
tree7c76d9e2e5856a04e8f4002e6ec0613eae766c05
parent597fa65373b824c840212cf238a73ae13dc35494
Recommit the fix for rdar://9289512 with a couple tweaks to
fix bugs exposed by the gcc dejagnu testsuite:
1. The load may actually be used by a dead instruction, which
   would cause an assert.
2. The load may not be used by the current chain of instructions,
   and we could move it past a side-effecting instruction. Change
   how we process uses to define the problem away.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@130018 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/CodeGen/SelectionDAGISel.h
lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
test/CodeGen/X86/fast-isel-x86-64.ll
test/CodeGen/X86/fast-isel.ll