Suboptimal codegen for integer slice matching without |
in inner elements
#132254
Labels
A-patterns
Relating to patterns and pattern matching
C-optimization
Category: An issue highlighting optimization opportunities or PRs implementing such
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
In maching without
|
, this is not optimized as slice compare:Slice compare:
Integer: https://godbolt.org/z/csxf5zeYs
&str
: https://godbolt.org/z/3Yr5nac3rNot sure if this shoud be integer only.The text was updated successfully, but these errors were encountered: