[all-commits] [llvm/llvm-project] a57fe2: [JumpThreading] Fix branch probabilities in Duplic...
Yevgeny Rouban via All-commits
all-commits at lists.llvm.org
Mon Nov 16 23:41:50 PST 2020
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: a57fe210ff7cf553b721bf08e74df42b0ae1df38
https://github.com/llvm/llvm-project/commit/a57fe210ff7cf553b721bf08e74df42b0ae1df38
Author: Yevgeny Rouban <yrouban at azul.com>
Date: 2020-11-17 (Tue, 17 Nov 2020)
Changed paths:
M llvm/lib/Transforms/Scalar/JumpThreading.cpp
A llvm/test/Transforms/JumpThreading/thread-prob-3.ll
Log Message:
-----------
[JumpThreading] Fix branch probabilities in DuplicateCondBranchOnPHIIntoPred()
When instructions are cloned from block BB to PredBB in the method
DuplicateCondBranchOnPHIIntoPred() number of successors of PredBB
changes from 1 to number of successors of BB. So we have to copy
branch probabilities from BB to PredBB.
Reviewed By: Kazu Hirata
Differential Revision: https://reviews.llvm.org/D90841
More information about the All-commits
mailing list