summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp
diff options
context:
space:
mode:
authorCraig Topper <craig.topper@intel.com>2017-11-15 05:23:02 +0000
committerCraig Topper <craig.topper@intel.com>2017-11-15 05:23:02 +0000
commitf7b86728fa1912fef2da37995a75c1023c838498 (patch)
treef553bfea10beb16fe6fe5f02c7a7854be54e257e /llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp
parent72a1f98a6760940212677dc5706e3443c2a0f1e5 (diff)
downloadbcm5719-llvm-f7b86728fa1912fef2da37995a75c1023c838498.tar.gz
bcm5719-llvm-f7b86728fa1912fef2da37995a75c1023c838498.zip
[InstCombine] Simplify binops that are only used by a select and are fed by a select with the same condition.
Summary: This patch optimizes a binop sandwiched between 2 selects with the same condition. Since we know its only used by the select we can propagate the appropriate input value from the earlier select. As I'm writing this I realize I may need to avoid doing this for division in case the select was protecting a divide by zero? Reviewers: spatel, majnemer Reviewed By: majnemer Subscribers: llvm-commits Differential Revision: https://reviews.llvm.org/D39999 llvm-svn: 318267
Diffstat (limited to 'llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud