[all-commits] [llvm/llvm-project] 0df090: [JumpThreading] Use [BB->SuccIndx] to get probabil...

tianleliu via All-commits all-commits at lists.llvm.org
Tue Apr 8 01:32:55 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 0df0906af67fe81c0cc3ed6230518f4314884389
      https://github.com/llvm/llvm-project/commit/0df0906af67fe81c0cc3ed6230518f4314884389
  Author: tianleliu <tianle.l.liu at intel.com>
  Date:   2025-04-08 (Tue, 08 Apr 2025)

  Changed paths:
    M llvm/lib/Transforms/Scalar/JumpThreading.cpp
    A llvm/test/Transforms/JumpThreading/thread-prob-8.ll

  Log Message:
  -----------
  [JumpThreading] Use [BB->SuccIndx] to get probability when updating BB info. (#134585)

In case the same src BB targets to the same dest BB in different
conditions/edges, such as switch-cases, we should use
prob[SrcBB->SuccIndx] instead of prob[SrcBB->DstBB] to get probability.



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