[all-commits] [llvm/llvm-project] be687a: [InstSimplify] Adjust context instruction when thr...

Nikita Popov via All-commits all-commits at lists.llvm.org
Fri Mar 10 01:36:08 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: be687aff052bbdd6fd2cc3c75c8cebdd9ce7fab2
      https://github.com/llvm/llvm-project/commit/be687aff052bbdd6fd2cc3c75c8cebdd9ce7fab2
  Author: Nikita Popov <npopov at redhat.com>
  Date:   2023-03-10 (Fri, 10 Mar 2023)

  Changed paths:
    M llvm/lib/Analysis/InstructionSimplify.cpp
    M llvm/test/Transforms/InstSimplify/phi.ll

  Log Message:
  -----------
  [InstSimplify] Adjust context instruction when threading phi (PR61312)

When threading operations over phis, we need to adjust the context
instruction to the terminator of the incoming block. This was
handled when threading icmps, but not when threading binops.

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




More information about the All-commits mailing list