Skip to content

Commit 7051cc7

Browse files
committed
[InstComb] Use IsaPred in place of match_fn
1 parent 619fb52 commit 7051cc7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Transforms/InstCombine/InstCombineCompares.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1340,7 +1340,7 @@ Instruction *InstCombinerImpl::foldICmpWithConstant(ICmpInst &Cmp) {
13401340
return nullptr;
13411341

13421342
if (auto *Phi = dyn_cast<PHINode>(Op0))
1343-
if (all_of(Phi->operands(), match_fn(m_Constant()))) {
1343+
if (all_of(Phi->operands(), IsaPred<Constant>)) {
13441344
SmallVector<Constant *> Ops;
13451345
for (Value *V : Phi->incoming_values()) {
13461346
Constant *Res =

0 commit comments

Comments
 (0)