Simpler Logic Produces More Complex Output Than Equivalent Expression #139851
Labels
A-LLVM
Area: Code generation parts specific to LLVM. Both correctness bugs and optimization-related issues.
C-optimization
Category: An issue highlighting optimization opportunities or PRs implementing such
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.
I tried these codes:
https://godbolt.org/z/sE73ocr4a
and:
I expected to see this happen:
Both expressions should produce identical assembly code:
Instead, this happened:
The first expression with simpler logic
a0 == a1 && b0 == b1
, generated more complex assembly code than expected:Thank you!
Meta
The text was updated successfully, but these errors were encountered: