[PATCH] D154937: [InstCombine] Generalize foldAndOrOfICmpEqZeroAndICmp
Nikita Popov via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Jul 11 07:48:34 PDT 2023
nikic added inline comments.
================
Comment at: llvm/test/Transforms/InstCombine/and-or-icmp-const-icmp.ll:235
;
%sub = add <2 x i8> %x, <i8 -5, i8 -5>
%c1 = icmp eq <2 x i8> %x, <i8 5, i8 undef>
----------------
We should also have the variant with the undef on the `add`. Handling that one would need m_SpecificIntAllowUndef() as well.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D154937/new/
https://reviews.llvm.org/D154937
More information about the llvm-commits
mailing list