Bug 1020482 - MLimitedTruncate instructions are movable. r=nbp

This commit is contained in:
Dan Gohman 2014-06-12 15:47:36 -07:00
Родитель bc5238b486
Коммит 55694940f4
1 изменённых файлов: 3 добавлений и 2 удалений

Просмотреть файл

@ -1027,8 +1027,8 @@ class MNop : public MNullaryInstruction
}
};
// No-op instruction. This cannot be moved or eliminated, and is intended for
// protecting the input against follow-up optimization.
// Truncation barrier. This is intended for protecting its input against
// follow-up truncation optimizations.
class MLimitedTruncate : public MUnaryInstruction
{
public:
@ -1043,6 +1043,7 @@ class MLimitedTruncate : public MUnaryInstruction
{
setResultType(input->type());
setResultTypeSet(input->resultTypeSet());
setMovable();
}
public: