diff options
author | Craig Topper <craig.topper@intel.com> | 2018-02-13 16:25:27 +0000 |
---|---|---|
committer | Craig Topper <craig.topper@intel.com> | 2018-02-13 16:25:27 +0000 |
commit | f73ff612cabc043d481b6fdd3b5e7cd92d5f0706 (patch) | |
tree | c9a91bae5a10b7be95f802c281b1edd1fe7ab07f /llvm/lib/CodeGen/MachineBasicBlock.cpp | |
parent | 036789a7e871ae898ee6dc317cf8e70b86d54ef2 (diff) | |
download | llvm-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