diff options
author | Roman Lebedev <lebedev.ri@gmail.com> | 2019-10-23 11:58:50 +0300 |
---|---|---|
committer | Roman Lebedev <lebedev.ri@gmail.com> | 2019-10-23 12:01:40 +0300 |
commit | 20bf0cf2f020ce3b344838b88d8a86e156c05443 (patch) | |
tree | 0961afc31652a7e4a3c49cf5aa8e084be62c616b /lldb/packages/Python/lldbsuite/test/commands/command/script/welcome.py | |
parent | d052a578de58cbbb638cbe2dba05242d1ff443b9 (diff) | |
download | bcm5719-llvm-20bf0cf2f020ce3b344838b88d8a86e156c05443.tar.gz bcm5719-llvm-20bf0cf2f020ce3b344838b88d8a86e156c05443.zip |
[TargetLowering] optimizeSetCCToComparisonWithZero(): add extra sanity checks (PR43769)
We should do the fold only if both constants are plain,
non-opaque constants, at least that is the DAG.FoldConstantArithmetic()
requirement.
And if the constant we are comparing with is zero - we shouldn't be
trying to do this fold in the first place.
Fixes https://bugs.llvm.org/show_bug.cgi?id=43769
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/commands/command/script/welcome.py')
0 files changed, 0 insertions, 0 deletions