[all-commits] [llvm/llvm-project] a700a5: [InterleavedAccessPass] Avoid optimizing load inst...

Skwoogey via All-commits all-commits at lists.llvm.org
Tue Nov 7 00:09:11 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: a700a520f86e8e667acfe95d8e71b9813120f35b
      https://github.com/llvm/llvm-project/commit/a700a520f86e8e667acfe95d8e71b9813120f35b
  Author: Skwoogey <69175746+Skwoogey at users.noreply.github.com>
  Date:   2023-11-07 (Tue, 07 Nov 2023)

  Changed paths:
    M llvm/lib/CodeGen/InterleavedAccessPass.cpp
    M llvm/test/Transforms/InterleavedAccess/AArch64/binopshuffles.ll

  Log Message:
  -----------
  [InterleavedAccessPass] Avoid optimizing load instructions if it has dead binop users (#71339)

If a load instruction qualifies to be optimized by InterleavedAccess
Pass, but also has a dead binop instruction, this will lead to a crash.

Binop instruction will not be deleted, because normally it would be
deleted through its' users, but it has none. Later on deleting a load
instruction will fail because it still has uses.




More information about the All-commits mailing list