From 55694940f464d792863ab52baefdd6f297bb0f89 Mon Sep 17 00:00:00 2001 From: Dan Gohman Date: Thu, 12 Jun 2014 15:47:36 -0700 Subject: [PATCH] Bug 1020482 - MLimitedTruncate instructions are movable. r=nbp --- js/src/jit/MIR.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/js/src/jit/MIR.h b/js/src/jit/MIR.h index 892a2d90370f..88e89b6132e2 100644 --- a/js/src/jit/MIR.h +++ b/js/src/jit/MIR.h @@ -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: