[PATCH] Added instcombine for 'ABS(ABS(X)) -> ABS(X)'
Dinesh Dwivedi
dinesh.d at samsung.com
Thu May 15 04:04:50 PDT 2014
updated code to handle following patterns [Thanks for pointing out]
// (X > 0) ? X : -X
// (X < 0) ? -X : X
// (X > 1) ? -X : X
http://reviews.llvm.org/D3658
Files:
lib/Transforms/InstCombine/InstCombine.h
lib/Transforms/InstCombine/InstCombineSelect.cpp
test/Transforms/InstCombine/select.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D3658.9432.patch
Type: text/x-patch
Size: 7085 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20140515/dbfce787/attachment.bin>
More information about the llvm-commits
mailing list