[all-commits] [llvm/llvm-project] ebab10: [IR] Don't strip through pointer to vector of poin...

Nikita Popov via All-commits all-commits at lists.llvm.org
Thu Jul 4 00:48:26 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: ebab105670a409e426ddcb0278578711a622b1b2
      https://github.com/llvm/llvm-project/commit/ebab105670a409e426ddcb0278578711a622b1b2
  Author: Nikita Popov <npopov at redhat.com>
  Date:   2024-07-04 (Thu, 04 Jul 2024)

  Changed paths:
    M llvm/lib/Analysis/ValueTracking.cpp
    M llvm/lib/IR/Value.cpp
    A llvm/test/Analysis/BasicAA/ptr-vector.ll

  Log Message:
  -----------
  [IR] Don't strip through pointer to vector of pointer bitcasts

When using stripPointerCasts() and getUnderlyingObject(), don't
strip through a bitcast from ptr to <1 x ptr>, which is not a
no-op pointer cast. Calling code is generally not prepared to
handle that situation, resulting in incorrect alias analysis
results for example.

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



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