[all-commits] [llvm/llvm-project] 5932fc: [InlineCost] Consider the default branch when calc...
Quentin Dian via All-commits
all-commits at lists.llvm.org
Sun Feb 11 02:25:10 PST 2024
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 5932fcc47855fdd209784f38820422d2369b84b2
https://github.com/llvm/llvm-project/commit/5932fcc47855fdd209784f38820422d2369b84b2
Author: Quentin Dian <dianqk at dianqk.net>
Date: 2024-02-11 (Sun, 11 Feb 2024)
Changed paths:
M llvm/include/llvm/Analysis/InlineModelFeatureMaps.h
M llvm/include/llvm/IR/Instructions.h
M llvm/lib/Analysis/InlineCost.cpp
A llvm/test/Transforms/Inline/inline-switch-default-2.ll
A llvm/test/Transforms/Inline/inline-switch-default.ll
Log Message:
-----------
[InlineCost] Consider the default branch when calculating cost (#77856)
First step in fixing #76772.
This PR considers the default branch as a case branch. This will give
the unreachable default branch fair consideration.
More information about the All-commits
mailing list