[all-commits] [llvm/llvm-project] 21ee38: [DebugInfo][LSR] Avoid crashes on large integer in...

chrisjbris via All-commits all-commits at lists.llvm.org
Wed Aug 4 07:53:36 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 21ee38e24f9801a567306b2a88defacf6e589a8b
      https://github.com/llvm/llvm-project/commit/21ee38e24f9801a567306b2a88defacf6e589a8b
  Author: Chris Jackson <chris.jackson at sony.com>
  Date:   2021-08-04 (Wed, 04 Aug 2021)

  Changed paths:
    M llvm/lib/Transforms/Scalar/LoopStrengthReduce.cpp
    A llvm/test/Transforms/LoopStrengthReduce/pr51329.ll

  Log Message:
  -----------
  [DebugInfo][LSR] Avoid crashes on large integer inputs

SCEV-based salvaging in LSR translates SCEVs to DIExpressions. SCEVs may
contain very large integers but the translation does not support
integers greater than 64 bits. This patch adds checks to ensure
conversions of these large integers is not attempted. A regression test
is added to ensure no such translation is attempted.

Reviewed by: StephenTozer

PR: https://bugs.llvm.org/show_bug.cgi?id=51329

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




More information about the All-commits mailing list