Evan Cheng
|
201501995f
|
Favors generating "not" over "xor -1". For example.
unsigned test(unsigned a) {
return ~a;
}
llvm used to generate:
movl $4294967295, %eax
xorl 4(%esp), %eax
Now it generates:
movl 4(%esp), %eax
notl %eax
It's 3 bytes shorter.
llvm-svn: 62661
|
2009-01-21 02:09:05 +00:00 |
Dan Gohman
|
bcde172222
|
Add AsmPrinter support for emitting a directive to declare that
the code being generated does not require an executable stack.
Also, add target-specific code to make use of this on Linux
on x86.
llvm-svn: 50634
|
2008-05-05 00:28:39 +00:00 |
Chris Lattner
|
5bd2f736e6
|
fix this testcase to pass and remove a duplicate instance of itself.
llvm-svn: 49281
|
2008-04-06 21:39:17 +00:00 |
Torok Edwin
|
613d7afe64
|
Prefer to expand mask for xor to -1, so we have a chance to turn it into a not.
If it cannot be expanded, it will keep the old behaviour and try to shrink the constant.
Part of enhancement for PR2191.
llvm-svn: 49280
|
2008-04-06 21:23:02 +00:00 |