Add a missed optimization

llvm-svn: 24495
This commit is contained in:
Chris Lattner 2005-11-28 04:52:39 +00:00
parent 1f47b25727
commit 820c94e467
1 changed files with 9 additions and 0 deletions

View File

@ -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