[all-commits] [llvm/llvm-project] c9a5e1: [IndVars] Check if WideInc available before trying...

Nikita Popov via All-commits all-commits at lists.llvm.org
Wed Aug 28 03:56:27 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: c9a5e1b665dbba898e9981fd7d48881947e6560e
      https://github.com/llvm/llvm-project/commit/c9a5e1b665dbba898e9981fd7d48881947e6560e
  Author: Nikita Popov <npopov at redhat.com>
  Date:   2024-08-28 (Wed, 28 Aug 2024)

  Changed paths:
    M llvm/lib/Transforms/Utils/SimplifyIndVar.cpp
    A llvm/test/Transforms/IndVarSimplify/pr106239.ll

  Log Message:
  -----------
  [IndVars] Check if WideInc available before trying to use it

WideInc/WideIncExpr can be null. Previously this worked out
because the comparison with WideIncExpr would fail. Now we have
accesses to WideInc prior to that. Avoid the issue with an
explicit check.

Fixes https://github.com/llvm/llvm-project/issues/106239.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list