Inline memset when there is a constant value and count.
BUG=
R=jvoung@chromium.org, jvoung, stichnot
Review URL: https://codereview.chromium.org/1255053008.
diff --git a/src/IceInstX86BaseImpl.h b/src/IceInstX86BaseImpl.h
index 137e295..2956558 100644
--- a/src/IceInstX86BaseImpl.h
+++ b/src/IceInstX86BaseImpl.h
@@ -2134,6 +2134,7 @@
return;
Ostream &Str = Func->getContext()->getStrEmit();
assert(this->getSrcSize() == 2);
+ assert(isVectorType(this->getSrc(1)->getType()));
Str << "\tmovups\t";
this->getSrc(0)->emit(Func);
Str << ", ";
@@ -2175,7 +2176,8 @@
Ostream &Str = Func->getContext()->getStrEmit();
assert(this->getSrcSize() == 2);
assert(this->getSrc(1)->getType() == IceType_i64 ||
- this->getSrc(1)->getType() == IceType_f64);
+ this->getSrc(1)->getType() == IceType_f64 ||
+ isVectorType(this->getSrc(1)->getType()));
Str << "\tmovq\t";
this->getSrc(0)->emit(Func);
Str << ", ";