[PATCH] D115392: [SLP] Don't vectorize div/rem with undef denominators

Roman Lebedev via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Dec 8 13:30:02 PST 2021


lebedev.ri requested changes to this revision.
lebedev.ri added inline comments.
This revision now requires changes to proceed.


================
Comment at: llvm/test/Transforms/SLPVectorizer/X86/arith-div-undef.ll:16
   %a7 = extractelement <8 x i32> %a, i32 7
   %ab0 = sdiv i32 %a0, undef
   %ab1 = sdiv i32 %a1, 4
----------------
This is an immediate UB https://alive2.llvm.org/ce/z/uKOdmW


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D115392



More information about the llvm-commits mailing list