Unnecessary conditional branch generated #37114
Labels
A-LLVM
Area: Code generation parts specific to LLVM. Both correctness bugs and optimization-related issues.
C-enhancement
Category: An issue proposing an enhancement or a PR with one.
I-slow
Issue: Problems and improvements with respect to performance of generated code.
This function
gives the following assembly
There is a conditional branch to
.LBB6_4
if the length is < 2. There is no conditional branch created forv[len - 2]
, which is good, as the length is >= 2. However, there is a conditional branch to.LBB6_3
created forv.pop()
which can never be taken.The text was updated successfully, but these errors were encountered: