[all-commits] [llvm/llvm-project] f2a322: [SROA] prevent crash on large memset length (PR50910)

RotateRight via All-commits all-commits at lists.llvm.org
Sat Jul 31 11:08:22 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: f2a322bfcfbc62b5523f32c4eded6faf2cad2e24
      https://github.com/llvm/llvm-project/commit/f2a322bfcfbc62b5523f32c4eded6faf2cad2e24
  Author: Sanjay Patel <spatel at rotateright.com>
  Date:   2021-07-31 (Sat, 31 Jul 2021)

  Changed paths:
    M llvm/lib/Transforms/Scalar/SROA.cpp
    M llvm/test/Transforms/SROA/slice-width.ll

  Log Message:
  -----------
  [SROA] prevent crash on large memset length (PR50910)

I don't know much about this pass, but we need a stronger
check on the memset length arg to avoid an assert. The
current code was added with D59000.
The test is reduced from:
https://llvm.org/PR50910

Differential Revision: https://reviews.llvm.org/D106462




More information about the All-commits mailing list