mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-14 07:09:08 +00:00
(store (op (load ...)), ...)
If store's chain operand is load, then use load's chain operand instead. If it isn't (likely a TokenFactor), then do not allow the folding. llvm-svn: 25708
This commit is contained in:
parent
42365cf504
commit
450fcb1d91
@ -1931,9 +1931,16 @@ public:
|
||||
<< ".getValue(" << CInfo.getNumResults() << "))) goto P"
|
||||
<< PatternNo << "Fail; // Already selected for a chain use?\n";
|
||||
}
|
||||
if (NodeHasChain && !FoundChain) {
|
||||
OS << " SDOperand Chain = " << RootName << ".getOperand(0);\n";
|
||||
FoundChain = true;
|
||||
if (NodeHasChain) {
|
||||
if (!FoundChain) {
|
||||
OS << " SDOperand Chain = " << RootName << ".getOperand(0);\n";
|
||||
FoundChain = true;
|
||||
} else {
|
||||
OS << " if (Chain.Val == " << RootName << ".Val)\n";
|
||||
OS << " Chain = " << RootName << ".getOperand(0);\n";
|
||||
OS << " else\n";
|
||||
OS << " goto P" << PatternNo << "Fail;\n";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user