[all-commits] [llvm/llvm-project] 35ec3f: Disable Jump Threading for the targets with diverg...

alex-t via All-commits all-commits at lists.llvm.org
Wed Dec 16 15:49:49 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 35ec3ff76dee376661dd7e4971b80533a7a7f364
      https://github.com/llvm/llvm-project/commit/35ec3ff76dee376661dd7e4971b80533a7a7f364
  Author: alex-t <alexander.timofeev at amd.com>
  Date:   2020-12-17 (Thu, 17 Dec 2020)

  Changed paths:
    M llvm/lib/Transforms/Scalar/JumpThreading.cpp
    A llvm/test/Transforms/JumpThreading/divergent-target-test.ll

  Log Message:
  -----------
  Disable Jump Threading for the targets with divergent control flow

Details: Jump Threading does not make sense for the targets with divergent CF
         since they do not use branch prediction for speculative execution.
         Also in the high level IR there is no enough information to conclude that the branch is divergent or uniform.
         This may cause errors in further CF lowering.

Reviewed By: rampitec

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




More information about the All-commits mailing list