[all-commits] [llvm/llvm-project] d808ad: [EarlyCSE] Fix crash when optimizing masked loads/...

Fraser Cormack via All-commits all-commits at lists.llvm.org
Thu Jan 12 09:34:17 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: d808ad822a5b49594d5a4955d4d9b3a59a50d360
      https://github.com/llvm/llvm-project/commit/d808ad822a5b49594d5a4955d4d9b3a59a50d360
  Author: Fraser Cormack <fraser at codeplay.com>
  Date:   2023-01-12 (Thu, 12 Jan 2023)

  Changed paths:
    M llvm/lib/Transforms/Scalar/EarlyCSE.cpp
    M llvm/test/Transforms/EarlyCSE/opaque-ptr.ll

  Log Message:
  -----------
  [EarlyCSE] Fix crash when optimizing masked loads/stores

With opaque pointers, it is possible for EarlyCSE to encounter masked
load/store intrinsics which access the same pointer value but with
different incompatible types. These cannot form valid replacements
(without explicit casting, which we don't yet do even for regular
load/store instructions) so should be prevented.

Reviewed By: nikic

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




More information about the All-commits mailing list