[PATCH] D60600: [InstCombine] Fix a vector-of-pointers instcombine undef bug.

Sanjay Patel via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Apr 30 05:06:10 PDT 2019


spatel added a subscriber: RKSimon.
spatel added a comment.

A fuzzer found what looks like the same bug in PR41624:
https://bugs.llvm.org/show_bug.cgi?id=41624

@sheredom - can you confirm? (and may want to add this minimal test to the patch for more coverage)

  define i32* @PR41624(<2 x { i32, i32 }*> %a) {
    %w = getelementptr { i32, i32 }, <2 x { i32, i32 }*> %a, <2 x i64> <i64 5, i64 undef>, <2 x i32> <i32 0, i32 0>
    %r = extractelement <2 x i32*> %w, i1 0
    ret i32* %r
  }


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

https://reviews.llvm.org/D60600





More information about the llvm-commits mailing list