[all-commits] [llvm/llvm-project] f5f093: [GVN] Fix crash when svcount is used with globals-...

Madhur Amilkanthwar via All-commits all-commits at lists.llvm.org
Tue Mar 3 21:24:37 PST 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: f5f0930c4715749df5a92f2b055647450f5308d4
      https://github.com/llvm/llvm-project/commit/f5f0930c4715749df5a92f2b055647450f5308d4
  Author: Madhur Amilkanthwar <madhura at nvidia.com>
  Date:   2026-03-04 (Wed, 04 Mar 2026)

  Changed paths:
    M llvm/lib/Transforms/Utils/VNCoercion.cpp
    A llvm/test/Transforms/GVN/svcount-access.ll

  Log Message:
  -----------
  [GVN] Fix crash when svcount is used with globals-aa (#184347)

When -globals-aa is used, `analyzeLoadAvailiability` calls
`analyzeLoadClobberringStore` which in turn calls
`isFirstClassAggregateOrScalableType` which is using
`isa<ScalableVectorType>`. Ideally it should use type's isScalableType()
method.

The crash does not occur when default (BasicAA) is used because
`analyzeLoadAvailiability` function does not take the load clobbering
path as BasicAA returns `Def`.

Fixes #159368



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