[PATCH] D154937: [InstCombine] Generalize foldAndOrOfICmpEqZeroAndICmp

Dhruv Chawla via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Jul 11 09:56:33 PDT 2023


0xdc03 marked an inline comment as done.
0xdc03 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>
----------------
nikic wrote:
> We should also have the variant with the undef on the `add`. Handling that one would need m_SpecificIntAllowUndef() as well.
Done, though I'm just appending the test to this patch.


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