[PATCH] D147373: [InstCombine] fold double reverses
Zhengyang Liu via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sat Apr 1 19:06:56 PDT 2023
liuz added inline comments.
================
Comment at: llvm/lib/Transforms/InstCombine/InstCombineVectorOps.cpp:2724
+ Instruction *Arith;
+ if (!match(SVI.getOperand(0), m_OneUse(m_Instruction(Arith))))
+ return nullptr;
----------------
junaire wrote:
> FWIW, we have `m_ICmp`
I avoided m_ICmp because this code will support other type of instructions (Unary, Binary, Intrinsic, etc...) in the future.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D147373/new/
https://reviews.llvm.org/D147373
More information about the llvm-commits
mailing list