[all-commits] [llvm/llvm-project] a9029a: [OpaquePtr][ValueTracking] Check GEP source elemen...

aeubanks via All-commits all-commits at lists.llvm.org
Sun Feb 13 10:35:59 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: a9029a33ffe5cd458b51b18f7faf5d1c844f4bb4
      https://github.com/llvm/llvm-project/commit/a9029a33ffe5cd458b51b18f7faf5d1c844f4bb4
  Author: Arthur Eubanks <aeubanks at google.com>
  Date:   2022-02-13 (Sun, 13 Feb 2022)

  Changed paths:
    M llvm/lib/Analysis/ValueTracking.cpp
    M llvm/test/Transforms/MemCpyOpt/opaque-ptr.ll

  Log Message:
  -----------
  [OpaquePtr][ValueTracking] Check GEP source element type in isPointerOffset()

Fixes a MemCpyOpt miscompile with opaque pointers.
This function can be further cleaned up, but let's just fix the miscompile first.

Reviewed By: #opaque-pointers, nikic

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




More information about the All-commits mailing list