Last active
December 15, 2015 22:58
-
-
Save soimort/5336465 to your computer and use it in GitHub Desktop.
gcc "-fipa-pure-const" optimization
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- a1.s 2013-04-08 14:46:49.996856646 +0200 | |
+++ a2.s 2013-04-08 14:46:23.800190673 +0200 | |
@@ -91,7 +91,9 @@ | |
movl $.LC0, %edi | |
movl $0, %eax | |
call printf | |
- movl %ebx, %esi | |
+ movl $0, %eax | |
+ call foo | |
+ movl %eax, %esi | |
movl $.LC1, %edi | |
movl $0, %eax | |
call printf |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Regarding https://gist.github.com/innocentim/5335682:
compile with
and