Enhance logic in X86DAGToDAGISel::PreprocessForRMW which move load inside callseq_sta...
authorEvan Cheng <evan.cheng@apple.com>
Mon, 26 Jan 2009 18:43:34 +0000 (18:43 +0000)
committerEvan Cheng <evan.cheng@apple.com>
Mon, 26 Jan 2009 18:43:34 +0000 (18:43 +0000)
commit5b2e5893c62cac7f349b348400c669d40e2eeca2
treeb44ca77c22b5b663eef3608ada7fa0c27ade86c0
parentb964f3387350184431f90f14050be943236c8fcd
Enhance logic in X86DAGToDAGISel::PreprocessForRMW which move load inside callseq_start to allow it to be folded into a call. It was not considering the cases where a token factor is between the load and the callseq_start.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@63022 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/X86/X86ISelDAGToDAG.cpp
test/CodeGen/X86/fold-call-3.ll [new file with mode: 0644]