[PATCH] D145220: [X86][InstCombine] Simplify some `pternlog` intrinsics
Nikita Popov via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sat Mar 4 01:11:09 PST 2023
nikic added inline comments.
================
Comment at: llvm/lib/Target/X86/X86InstCombineIntrinsic.cpp:590
+
+ auto IsEvaluatableConst = [](Value *V) {
+ if (isa<ConstantInt>(V))
----------------
You are looking for `match(V, m_ImmConstant())` I think.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D145220/new/
https://reviews.llvm.org/D145220
More information about the llvm-commits
mailing list