[PATCH] Added transform for ABS(NABS(X)) and NABS(ABS(X))

Dinesh Dwivedi dinesh.d at samsung.com
Fri Jun 6 00:54:03 PDT 2014


Hi bkramer, rafael,

This removes TODO added in http://reviews.llvm.org/D3658

The patch transforms
  ABS(NABS(X)) -> ABS(X)
  NABS(ABS(X)) -> NABS(X)

http://reviews.llvm.org/D4040

Files:
  lib/Transforms/InstCombine/InstCombineSelect.cpp
  test/Transforms/InstCombine/abs_abs.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D4040.10166.patch
Type: text/x-patch
Size: 17919 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20140606/72b01b79/attachment.bin>


More information about the llvm-commits mailing list