mirror of
https://github.com/RPCSX/llvm.git
synced 2024-11-25 04:39:44 +00:00
Add a note about a cute little fabs optimization.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@153543 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
c8591a451a
commit
f2fd23b062
@ -2370,3 +2370,8 @@ unsigned foo(unsigned x, unsigned y) { return x > y && x != 0; }
|
|||||||
should fold to x > y.
|
should fold to x > y.
|
||||||
|
|
||||||
//===---------------------------------------------------------------------===//
|
//===---------------------------------------------------------------------===//
|
||||||
|
|
||||||
|
int f(double x) { return __builtin_fabs(x) < 0.0; }
|
||||||
|
should fold to false.
|
||||||
|
|
||||||
|
//===---------------------------------------------------------------------===//
|
||||||
|
Loading…
Reference in New Issue
Block a user