2^i should be optimized to 1 << i #68773
Labels
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.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
T-libs-api
Relevant to the library API team, which will review and decide on the PR/issue.
Hello,
I came across a weird situation with powers of 2. They’re not optimized away to left shifts. Here’s a Godbolt example.
If you think it should / can be addressed, I’d love to do it! :)
The text was updated successfully, but these errors were encountered: