[PATCH] D118317: [InstCombine] Fold and-reduce idiom

Sanjay Patel via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Jan 28 08:17:38 PST 2022


spatel added a comment.

I didn't look at the crasher, but in hindsight, it seems clear that we need to check the bitcast source types more thoroughly. 
This will crash:

  define i1 @eq_cast_eq-1(<2 x i4*> %x, <2 x i4*> %y) {
    %ic = icmp eq <2 x i4*> %x, %y
    %b = bitcast <2 x i1> %ic to i2
    %r = icmp eq i2 %b, -1
    ret i1 %r
  }


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D118317/new/

https://reviews.llvm.org/D118317



More information about the llvm-commits mailing list