[llvm] [SimplifyCFG] Handle trunc condition in foldBranchToCommonDest. (PR #135490)

Andreas Jonson via llvm-commits llvm-commits at lists.llvm.org
Mon Apr 14 12:49:32 PDT 2025


andjo403 wrote:

The condition is not included in the cost comparison see:
https://github.com/llvm/llvm-project/blob/da17ced11b1cf44b433cb2b850978df4b6bff279/llvm/lib/Transforms/Utils/SimplifyCFG.cpp#L4150-L4152

so I do not know if there will be some change to execution time except that less branches will be removed.
but also will there not be more instructions retired by design and the hope is that they are cheaper then a branch.

https://github.com/llvm/llvm-project/pull/135490


More information about the llvm-commits mailing list