summaryrefslogtreecommitdiffstats
path: root/lldb/packages/Python/lldbsuite/test/python_api/process/main.cpp
diff options
context:
space:
mode:
authorJay Foad <jay.foad@amd.com>2019-07-12 17:33:54 +0100
committerJay Foad <jay.foad@amd.com>2019-11-11 10:01:59 +0000
commit9323ef4ecca1095347627842c8bfa3544a59e718 (patch)
tree7cc3f0607cb515fcfb9defe042abd674f6b91189 /lldb/packages/Python/lldbsuite/test/python_api/process/main.cpp
parente2f0b243aa014d5424e34b48132a6056c866b719 (diff)
downloadbcm5719-llvm-9323ef4ecca1095347627842c8bfa3544a59e718.tar.gz
bcm5719-llvm-9323ef4ecca1095347627842c8bfa3544a59e718.zip
[InstCombine] Simplify binary op when only one operand is a select
Summary: SimplifySelectsFeedingBinaryOp simplified binary ops when both operands were selects with the same condition. This patch extends it to handle these cases where only one operand is a select: X op (C ? P : Q) -> C ? (X op P) : (X op Q) // if X op P and X op Q both simplify (C ? P : Q) op Y -> C ? (P op Y) : (Q op Y) // if P op Y and Q op Y both simplify For example: X *fast (C ? 1.0 : 0.0) -> C ? X : 0.0 Reviewers: mcberg2017, majnemer, craig.topper, qcolombet, mcrosier Subscribers: hiraditya, llvm-commits Tags: #llvm Differential Revision: https://reviews.llvm.org/D64713
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/python_api/process/main.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud