Prior load folding check on chain operand was too strict. It requires the
authorEvan Cheng <evan.cheng@apple.com>
Thu, 12 Oct 2006 02:08:53 +0000 (02:08 +0000)
committerEvan Cheng <evan.cheng@apple.com>
Thu, 12 Oct 2006 02:08:53 +0000 (02:08 +0000)
commit4326ef582bceb8841f36623d98a98ee879642f2f
treeeba69e76919608487bd00e4cc681d48402056353
parent078ff41220e83ab59850beb8e6d8aed1ccefb027
Prior load folding check on chain operand was too strict. It requires the
chain operand to point to the load being folded. Now we relax this, traversing
up the chain, if it doesn't reach the load, then it's ok. We will create a
TokenFactor (of all the chain operands and the load's chain) to capture all
the control flow dependencies.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@30897 91177308-0d34-0410-b5e6-96231b3b80d8
utils/TableGen/DAGISelEmitter.cpp