[all-commits] [llvm/llvm-project] 2fba46: [DFAJumpThreading] Don't thread switch without mul...
XChy via All-commits
all-commits at lists.llvm.org
Thu Nov 2 07:22:58 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 2fba4694d07ee3f237e7728ab70e5c15c73791a8
https://github.com/llvm/llvm-project/commit/2fba4694d07ee3f237e7728ab70e5c15c73791a8
Author: XChy <xxs_chy at outlook.com>
Date: 2023-11-02 (Thu, 02 Nov 2023)
Changed paths:
M llvm/lib/Transforms/Scalar/DFAJumpThreading.cpp
A llvm/test/Transforms/DFAJumpThreading/single_succ_switch.ll
Log Message:
-----------
[DFAJumpThreading] Don't thread switch without multiple successors (#71060)
Fixes #56882.
Fixes #60254.
When switch has only one successor, it make no sense to thread it. And
computing the cost of it brings div-by-zero exception. We prevent it in
this patch.
More information about the All-commits
mailing list