Bug 1147810 - a barriered load has an effect. r=luke

This commit is contained in:
Lars T Hansen 2015-03-27 10:11:42 +01:00
parent f404970a0d
commit b7bbc0176d

View File

@ -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;