summaryrefslogtreecommitdiff
path: root/llvm/lib/Bitcode/Reader/BitcodeReader.cpp
diff options
context:
space:
mode:
authorNikita Popov <npopov@redhat.com>2022-02-22 17:53:14 +0100
committerNikita Popov <npopov@redhat.com>2022-02-23 09:37:30 +0100
commit65dc78d63ee2eb20fbed54401091f08a685ef8c1 (patch)
tree6455faf9eda1dc963799472ffb537d285829e8c2 /llvm/lib/Bitcode/Reader/BitcodeReader.cpp
parent79353f940cf441e69f32af0a78a48baee89e8517 (diff)
[InstCombine] Remove one-use limitation from X-Y==0 fold
This one-use limitation is artificial, we do not increase instruction count if we perform the fold with multiple uses. The motivating case is shown in @sub_eq_zero_select, where the one-use limitation causes us to miss a subsequent select fold. I believe the backend is pretty good about reusing flag-producing subs for cmps with same operands, so I think doing this is fine. Differential Revision: https://reviews.llvm.org/D120337
Diffstat (limited to 'llvm/lib/Bitcode/Reader/BitcodeReader.cpp')
0 files changed, 0 insertions, 0 deletions