| Index: src/IceTargetLoweringX86BaseImpl.h
|
| diff --git a/src/IceTargetLoweringX86BaseImpl.h b/src/IceTargetLoweringX86BaseImpl.h
|
| index 27fa85f49b10a71f01fbd061e517f4b4b4d38f15..948dd1994a81cfcb8afbce8ec8aa85c539a374b8 100644
|
| --- a/src/IceTargetLoweringX86BaseImpl.h
|
| +++ b/src/IceTargetLoweringX86BaseImpl.h
|
| @@ -4980,8 +4980,9 @@ void TargetX86Base<TraitsType>::lowerMemset(Operand *Dest, Operand *Val,
|
| if (shouldOptimizeMemIntrins() && IsCountConst && IsValConst) {
|
| Variable *Base = nullptr;
|
| Variable *VecReg = nullptr;
|
| + const uint32_t MaskValue = (ValValue & 0xff);
|
| const uint32_t SpreadValue =
|
| - (ValValue << 24) | (ValValue << 16) | (ValValue << 8) | ValValue;
|
| + (MaskValue << 24) | (MaskValue << 16) | (MaskValue << 8) | MaskValue;
|
|
|
| auto lowerSet = [this, &Base, SpreadValue, &VecReg](Type Ty,
|
| uint32_t OffsetAmt) {
|
|
|