aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/MachineBasicBlock.cpp
diff options
context:
space:
mode:
authorCraig Topper <craig.topper@intel.com>2018-02-13 16:25:27 +0000
committerCraig Topper <craig.topper@intel.com>2018-02-13 16:25:27 +0000
commitf73ff612cabc043d481b6fdd3b5e7cd92d5f0706 (patch)
treec9a91bae5a10b7be95f802c281b1edd1fe7ab07f /llvm/lib/CodeGen/MachineBasicBlock.cpp
parent036789a7e871ae898ee6dc317cf8e70b86d54ef2 (diff)
downloadllvm-f73ff612cabc043d481b6fdd3b5e7cd92d5f0706.zip
llvm-f73ff612cabc043d481b6fdd3b5e7cd92d5f0706.tar.gz
llvm-f73ff612cabc043d481b6fdd3b5e7cd92d5f0706.tar.bz2
[DAGCombiner] Add one use check to fold (not (and x, y)) -> (or (not x), (not y))
Summary: If the and has an additional use we shouldn't invert it. That creates an additional instruction. While there add a one use check to the transform above that looked similar. Reviewers: spatel, RKSimon Reviewed By: RKSimon Subscribers: llvm-commits Differential Revision: https://reviews.llvm.org/D43225 llvm-svn: 325019
Diffstat (limited to 'llvm/lib/CodeGen/MachineBasicBlock.cpp')
0 files changed, 0 insertions, 0 deletions