diff options
author | Dinesh Dwivedi <dinesh.d@samsung.com> | 2014-06-06 06:54:45 +0000 |
---|---|---|
committer | Dinesh Dwivedi <dinesh.d@samsung.com> | 2014-06-06 06:54:45 +0000 |
commit | 3217b6c66195ba593c9caa428c1c911f85998f00 (patch) | |
tree | b8d79e9e2c10cd82414cfe7dc2b5251b797c0c12 /clang/lib/Basic/Version.cpp | |
parent | 6ae079ee4ae0b33c393de1b2a16e70d2ae57a35a (diff) | |
download | bcm5719-llvm-3217b6c66195ba593c9caa428c1c911f85998f00.tar.gz bcm5719-llvm-3217b6c66195ba593c9caa428c1c911f85998f00.zip |
Added select flavour for ABS and NEG(ABS)
This patch can identify
ABS(X) ==> (X >s 0) ? X : -X and (X >s -1) ? X : -X
ABS(X) ==> (X <s 0) ? -X : X and (X <s 1) ? -X : X
NABS(X) ==> (X >s 0) ? -X : X and (X >s -1) ? -X : X
NABS(X) ==> (X <s 0) ? X : -X and (X <s 1) ? X : -X
and can transform
ABS(ABS(X)) -> ABS(X)
NABS(NABS(X)) -> NABS(X)
Differential Revision: http://reviews.llvm.org/D3658
llvm-svn: 210312
Diffstat (limited to 'clang/lib/Basic/Version.cpp')
0 files changed, 0 insertions, 0 deletions