[all-commits] [llvm/llvm-project] acf86c: [CVP] Keep `ReachableCaseCount` in sync with range...
Yingwei Zheng via All-commits
all-commits at lists.llvm.org
Wed Jun 11 15:56:42 PDT 2025
Branch: refs/heads/release/20.x
Home: https://github.com/llvm/llvm-project
Commit: acf86c5c4dbe8a65581f5438a61a8dddc4d02b6d
https://github.com/llvm/llvm-project/commit/acf86c5c4dbe8a65581f5438a61a8dddc4d02b6d
Author: Yingwei Zheng <dtcxzyw2333 at gmail.com>
Date: 2025-06-11 (Wed, 11 Jun 2025)
Changed paths:
M llvm/lib/Transforms/Scalar/CorrelatedValuePropagation.cpp
M llvm/test/Transforms/CorrelatedValuePropagation/switch.ll
Log Message:
-----------
[CVP] Keep `ReachableCaseCount` in sync with range of condition (#142302)
https://github.com/llvm/llvm-project/pull/79993 assumes that a reachable
case must be contained by `CR`. However, it doesn't hold for some edge
cases. This patch adds additional checks to ensure `ReachableCaseCount`
is correct.
Note: Similar optimization in SCCP isn't affected by this bug because it
uses `CR` to compute `ReachableCaseCount`.
Closes https://github.com/llvm/llvm-project/issues/142286.
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list