[PATCH] Added instruction combine to transform few more negative values addition to subtraction

Dinesh Dwivedi dinesh.d at samsung.com
Sat May 31 13:38:53 PDT 2014


This patch creates 2 instructions to replace ADD. Updated patch to check 
if atleast one of LHS or RHS to have one use to ensure benefit in transform.

http://reviews.llvm.org/D3733

Files:
  lib/Transforms/InstCombine/InstCombineAddSub.cpp
  test/Transforms/InstCombine/add2.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D3733.9989.patch
Type: text/x-patch
Size: 7210 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20140531/2297714e/attachment.bin>


More information about the llvm-commits mailing list