File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
llvm/tools/llvm-reduce/deltas Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -134,14 +134,16 @@ void llvm::reduceOperandsZeroDeltaPass(TestRunner &Test) {
134
134
if (auto *IntTy = dyn_cast<IntegerType>(Op->getType ()))
135
135
if (switchCaseExists (Op, ConstantInt::get (IntTy, 0 )))
136
136
return nullptr ;
137
- // Don't replace existing zeroes.
138
137
139
138
if (auto *TET = dyn_cast<TargetExtType>(Op->getType ())) {
139
+ if (isa<ConstantTargetNone, PoisonValue>(Op))
140
+ return nullptr ;
140
141
if (TET->hasProperty (TargetExtType::HasZeroInit))
141
142
return ConstantTargetNone::get (TET);
142
143
return PoisonValue::get (TET);
143
144
}
144
145
146
+ // Don't replace existing zeroes.
145
147
return isZero (Op) ? nullptr : Constant::getNullValue (Op->getType ());
146
148
};
147
149
runDeltaPass (
You can’t perform that action at this time.
0 commit comments