@@ -65,7 +65,7 @@ TEST_F(VectorBuilderTest, TestCreateBinaryInstructions) {
65
65
auto VPID = VPIntrinsic::getForOpcode (Instruction::OPCODE); \
66
66
bool IsFP = (#INSTCLASS)[0 ] == ' F' ; \
67
67
auto *ValueTy = IsFP ? FloatVecTy : IntVecTy; \
68
- Value *Op = UndefValue ::get (ValueTy); \
68
+ Value *Op = PoisonValue ::get (ValueTy); \
69
69
auto *I = VBuild.createVectorInstruction (Instruction::OPCODE, ValueTy, \
70
70
{Op, Op}); \
71
71
ASSERT_TRUE (isa<VPIntrinsic>(I)); \
@@ -115,7 +115,7 @@ TEST_F(VectorBuilderTest, TestCreateBinaryInstructions_FixedVector_NoMask) {
115
115
auto VPID = VPIntrinsic::getForOpcode (Instruction::OPCODE); \
116
116
bool IsFP = (#INSTCLASS)[0 ] == ' F' ; \
117
117
Type *ValueTy = IsFP ? FloatVecTy : IntVecTy; \
118
- Value *Op = UndefValue ::get (ValueTy); \
118
+ Value *Op = PoisonValue ::get (ValueTy); \
119
119
auto *I = VBuild.createVectorInstruction (Instruction::OPCODE, ValueTy, \
120
120
{Op, Op}); \
121
121
ASSERT_TRUE (isa<VPIntrinsic>(I)); \
@@ -161,7 +161,7 @@ TEST_F(VectorBuilderTest, TestCreateBinaryInstructions_FixedVector_NoEVL) {
161
161
auto VPID = VPIntrinsic::getForOpcode (Instruction::OPCODE); \
162
162
bool IsFP = (#INSTCLASS)[0 ] == ' F' ; \
163
163
Type *ValueTy = IsFP ? FloatVecTy : IntVecTy; \
164
- Value *Op = UndefValue ::get (ValueTy); \
164
+ Value *Op = PoisonValue ::get (ValueTy); \
165
165
auto *I = VBuild.createVectorInstruction (Instruction::OPCODE, ValueTy, \
166
166
{Op, Op}); \
167
167
ASSERT_TRUE (isa<VPIntrinsic>(I)); \
@@ -196,7 +196,7 @@ TEST_F(VectorBuilderTest,
196
196
auto VPID = VPIntrinsic::getForOpcode (Instruction::OPCODE); \
197
197
bool IsFP = (#INSTCLASS)[0 ] == ' F' ; \
198
198
Type *ValueTy = IsFP ? FloatVecTy : IntVecTy; \
199
- Value *Op = UndefValue ::get (ValueTy); \
199
+ Value *Op = PoisonValue ::get (ValueTy); \
200
200
auto *I = VBuild.createVectorInstruction (Instruction::OPCODE, ValueTy, \
201
201
{Op, Op}); \
202
202
ASSERT_TRUE (isa<VPIntrinsic>(I)); \
@@ -222,8 +222,8 @@ TEST_F(VectorBuilderTest, TestCreateLoadStore) {
222
222
auto *FloatVecTy =
223
223
FixedVectorType::get (Type::getFloatTy (Context), VectorNumElements);
224
224
225
- Value *FloatVecPtr = UndefValue ::get (Builder.getPtrTy (0 ));
226
- Value *FloatVec = UndefValue ::get (FloatVecTy);
225
+ Value *FloatVecPtr = PoisonValue ::get (Builder.getPtrTy (0 ));
226
+ Value *FloatVec = PoisonValue ::get (FloatVecTy);
227
227
228
228
// vp.load
229
229
auto LoadVPID = VPIntrinsic::getForOpcode (Instruction::Load);
0 commit comments