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 // Truncation barrier. This is intended for protecting its input against
// protecting the input against follow-up optimization. // follow-up truncation optimizations.
class MLimitedTruncate : public MUnaryInstruction class MLimitedTruncate : public MUnaryInstruction
{ {
public: public:
@ -1043,6 +1043,7 @@ class MLimitedTruncate : public MUnaryInstruction
{ {
setResultType(input->type()); setResultType(input->type());
setResultTypeSet(input->resultTypeSet()); setResultTypeSet(input->resultTypeSet());
setMovable();
} }
public: public: