We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 18b9fd4 commit bfffc16Copy full SHA for bfffc16
IGC/Compiler/CustomSafeOptPass.cpp
@@ -1181,8 +1181,8 @@ void GenSpecificPattern::visitBinaryOperator(BinaryOperator &I)
1181
void GenSpecificPattern::visitCmpInst(CmpInst &I)
1182
{
1183
using namespace llvm::PatternMatch;
1184
- CmpInst::Predicate Pred;
1185
- Value *Val1;
+ CmpInst::Predicate Pred = CmpInst::Predicate::BAD_ICMP_PREDICATE;
+ Value* Val1 = nullptr;
1186
uint64_t const_int1 = 0, const_int2 = 0;
1187
auto cmp_pattern = m_Cmp(Pred,
1188
m_And(m_Value(Val1), m_ConstantInt(const_int1)), m_ConstantInt(const_int2));
0 commit comments