Skip to content
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
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment