mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 03:02:36 +01:00
Remove an unnecessary restriction. MIsNeedChainEdge() should be checked even when scheduler AliasAnalysis is not
enabled. A good chunk of the MIsNeedChainEdge() is logic that is valid and should be applied even for targets that are not using for alias analysis. llvm-svn: 217706
This commit is contained in:
parent
3d52cdf45a
commit
683e1e4686
@ -664,7 +664,7 @@ void addChainDependency (AliasAnalysis *AA, const MachineFrameInfo *MFI,
|
||||
bool isNormalMemory = false) {
|
||||
// If this is a false dependency,
|
||||
// do not add the edge, but rememeber the rejected node.
|
||||
if (!AA || MIsNeedChainEdge(AA, MFI, SUa->getInstr(), SUb->getInstr())) {
|
||||
if (MIsNeedChainEdge(AA, MFI, SUa->getInstr(), SUb->getInstr())) {
|
||||
SDep Dep(SUa, isNormalMemory ? SDep::MayAliasMem : SDep::Barrier);
|
||||
Dep.setLatency(TrueMemOrderLatency);
|
||||
SUb->addPred(Dep);
|
||||
|
Loading…
Reference in New Issue
Block a user