[clang] [Clang][CodeGen] Emit load of GEP after EmitMemberExpr (PR #110487)
Jan Hendrik Farr via cfe-commits
cfe-commits at lists.llvm.org
Tue Oct 1 17:30:37 PDT 2024
Cydox wrote:
Interesting. You compiled with `-O2`, I compiled without optimization.
When I compile it with `-O2`, I now get `0`.
I've uploaded a gist with the disassembly generated with
```
clang -mllvm --x86-asm-syntax=intel -S test.c -o ./test-no-optimize.S
```
and
```
clang -O2 -mllvm --x86-asm-syntax=intel -S test.c -o ./test-optimize-O2.S
```
Can you do the same?
https://gist.github.com/Cydox/8b48a7d36dbcf6376d5a2d44afe5cf57
https://github.com/llvm/llvm-project/pull/110487
More information about the cfe-commits
mailing list