summaryrefslogtreecommitdiffstats
path: root/clang/lib/Frontend/CompilerInvocation.cpp
diff options
context:
space:
mode:
authorCraig Topper <craig.topper@intel.com>2017-07-15 21:49:49 +0000
committerCraig Topper <craig.topper@intel.com>2017-07-15 21:49:49 +0000
commitd918d5b36b71450898f4f8be94f4c6098633567b (patch)
tree43431c0b93197386b08c10a86766a675f791d04b /clang/lib/Frontend/CompilerInvocation.cpp
parentf9ea0959d97af6a24dd37d6053d7afce2bf1bfb6 (diff)
downloadbcm5719-llvm-d918d5b36b71450898f4f8be94f4c6098633567b.tar.gz
bcm5719-llvm-d918d5b36b71450898f4f8be94f4c6098633567b.zip
[InstCombine] Improve the expansion in SimplifyUsingDistributiveLaws to handle cases where one side doesn't simplify, but the other side resolves to an identity value
Summary: If one side simplifies to the identity value for inner opcode, we can replace the value with just the operation that can't be simplified. I've removed a couple now unneeded special cases in visitAnd and visitOr. There are probably other cases I missed. Reviewers: spatel, majnemer, hfinkel, dberlin Reviewed By: spatel Subscribers: grandinj, llvm-commits, spatel Differential Revision: https://reviews.llvm.org/D35451 llvm-svn: 308111
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud