[PATCH] D72740: [SLP] Don't allow Div/Rem as alternate opcodes

Andrei Elovikov via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Jan 14 15:14:23 PST 2020


a.elovikov created this revision.
a.elovikov added reviewers: Vasilis, RKSimon.
Herald added a subscriber: hiraditya.
Herald added a project: LLVM.

We don't have control/verify what will be the RHS of the division, so it might
happen to be zero, causing UB.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D72740

Files:
  llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
  llvm/test/Transforms/SLPVectorizer/X86/no_alternate_divrem.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D72740.238117.patch
Type: text/x-patch
Size: 6677 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200114/6b30e6a4/attachment.bin>


More information about the llvm-commits mailing list