mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-27 06:35:30 +00:00
Add a missed optimization
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24495 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
ac5bb69a4d
commit
1e4ed93599
@ -73,3 +73,12 @@ Another useful one would be ~0ULL >> X and ~0ULL << X.
|
||||
Should support emission of the bswap instruction, probably by adding a new
|
||||
DAG node for byte swapping. Also useful on PPC which has byte-swapping loads.
|
||||
|
||||
//===---------------------------------------------------------------------===//
|
||||
|
||||
Compile this:
|
||||
_Bool f(_Bool a) { return a!=1; }
|
||||
|
||||
into:
|
||||
movzbl %dil, %eax
|
||||
xorl $1, %eax
|
||||
ret
|
||||
|
Loading…
Reference in New Issue
Block a user