[all-commits] [llvm/llvm-project] 6d036b: [JumpThreading] Avoid threadThroughTwoBasicBlocks ...

Ch1p via All-commits all-commits at lists.llvm.org
Fri Jul 8 00:30:46 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 6d036b83d1afcf49c1eed3dc455f6558282908eb
      https://github.com/llvm/llvm-project/commit/6d036b83d1afcf49c1eed3dc455f6558282908eb
  Author: ChenYang Li <ch1p at foxmail.com>
  Date:   2022-07-08 (Fri, 08 Jul 2022)

  Changed paths:
    M llvm/lib/Transforms/Scalar/JumpThreading.cpp
    A llvm/test/Transforms/JumpThreading/indirectbr-in-predpred.ll

  Log Message:
  -----------
  [JumpThreading] Avoid threadThroughTwoBasicBlocks when PredPred BB ends with indirectbranch

Since we can't change the destination of indirectbr, so when
encounter indirectbr as PredPredBB terminator, we should pass it.

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




More information about the All-commits mailing list