[all-commits] [llvm/llvm-project] 873ff5: [SimpleLoopUnswich] Fixa a bug on ComputeUnswitche...
JinGu Kang via All-commits
all-commits at lists.llvm.org
Tue Jun 22 08:19:36 PDT 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 873ff5a72864fdf60614cca8adbd0d869fc9a9a2
https://github.com/llvm/llvm-project/commit/873ff5a72864fdf60614cca8adbd0d869fc9a9a2
Author: Jingu Kang <jingu.kang at arm.com>
Date: 2021-06-22 (Tue, 22 Jun 2021)
Changed paths:
M llvm/lib/Transforms/Scalar/SimpleLoopUnswitch.cpp
M llvm/test/Transforms/SimpleLoopUnswitch/partial-unswitch.ll
Log Message:
-----------
[SimpleLoopUnswich] Fixa a bug on ComputeUnswitchedCost with partial unswitch
There was a bug from cost calculation for partially invariant unswitch.
The costs of non-duplicated blocks are substracted from the total LoopCost, so
anything that is duplicated should not be counted.
Differential Revision: https://reviews.llvm.org/D103816
More information about the All-commits
mailing list