mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-08 04:27:37 +00:00
Bug 1147810 - a barriered load has an effect. r=luke
This commit is contained in:
parent
f404970a0d
commit
b7bbc0176d
@ -12635,6 +12635,10 @@ class MAsmJSLoadHeap
|
||||
|
||||
bool congruentTo(const MDefinition *ins) const override;
|
||||
AliasSet getAliasSet() const override {
|
||||
// When a barrier is needed make the instruction effectful by
|
||||
// giving it a "store" effect.
|
||||
if (barrierBefore_|barrierAfter_)
|
||||
return AliasSet::Store(AliasSet::AsmJSHeap);
|
||||
return AliasSet::Load(AliasSet::AsmJSHeap);
|
||||
}
|
||||
bool mightAlias(const MDefinition *def) const override;
|
||||
|
Loading…
Reference in New Issue
Block a user