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 619fb52 commit 7051cc7Copy full SHA for 7051cc7
llvm/lib/Transforms/InstCombine/InstCombineCompares.cpp
@@ -1340,7 +1340,7 @@ Instruction *InstCombinerImpl::foldICmpWithConstant(ICmpInst &Cmp) {
1340
return nullptr;
1341
1342
if (auto *Phi = dyn_cast<PHINode>(Op0))
1343
- if (all_of(Phi->operands(), match_fn(m_Constant()))) {
+ if (all_of(Phi->operands(), IsaPred<Constant>)) {
1344
SmallVector<Constant *> Ops;
1345
for (Value *V : Phi->incoming_values()) {
1346
Constant *Res =
0 commit comments