[llvm-bugs] [Bug 31777] Union store codegen is silly
via llvm-bugs
llvm-bugs at lists.llvm.org
Fri Aug 4 07:17:59 PDT 2017
https://bugs.llvm.org/show_bug.cgi?id=31777
Filipe Cabecinhas <filcab at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |FIXED
--- Comment #5 from Filipe Cabecinhas <filcab at gmail.com> ---
This has landed in r310055. New codegen for the x86_64 and armv8 cases JF
mentioned:
[llvm-cmake]% SDKROOT=$(xcrun --sdk iphoneos --show-sdk-path) ./bin/clang++
-target arm64-apple-darwin pr31777.cpp -O2 -S -fomit-frame-pointer -o - | grep
-v ...things...
__Z3fooP1U: ; @_Z3fooP1U
mov w8, #42
str x8, [x0]
ret
; -- End function
__Z3barP1U: ; @_Z3barP1U
mov w8, #42
str x8, [x0]
ret
; -- End function
__Z3bazP1U: ; @_Z3bazP1U
mov w8, #42
strh w8, [x0]
ret
; -- End function
[llvm-cmake]% SDKROOT=$(xcrun --sdk macosx --show-sdk-path) ./bin/clang++
pr31777.cpp -O2 -S -fomit-frame-pointer -o - | grep -v ...things...
__Z3fooP1U: ## @_Z3fooP1U
movq $42, (%rdi)
retq
## -- End function
__Z3barP1U: ## @_Z3barP1U
movq $42, (%rdi)
retq
## -- End function
__Z3bazP1U: ## @_Z3bazP1U
movw $42, (%rdi)
retq
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20170804/c8a11b62/attachment.html>
More information about the llvm-bugs
mailing list