Commit 562fd753 authored by Dinesh Dwivedi's avatar Dinesh Dwivedi
Browse files

Added instruction combine to transform few more negative values addition to subtraction (Part 1)

This patch enables transforms for following patterns.
  (x + (~(y & c) + 1)   -->   x - (y & c)
  (x + (~((y >> z) & c) + 1)   -->   x - ((y>>z) & c)

Differential Revision: http://reviews.llvm.org/D3733

llvm-svn: 211266
parent 54b0949a
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment