aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
diff options
context:
space:
mode:
authorNikita Popov <npopov@redhat.com>2023-02-27 11:56:36 +0100
committerNikita Popov <npopov@redhat.com>2023-02-27 12:12:33 +0100
commit47f9109dff80a1abbe2705ee71dc0882b1d62274 (patch)
tree13b1eba2b848a5855adf1a267a7b58981205a206 /llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
parent398cddf6acecfb12b5997c2d639ee3cf31b787ad (diff)
downloadllvm-47f9109dff80a1abbe2705ee71dc0882b1d62274.zip
llvm-47f9109dff80a1abbe2705ee71dc0882b1d62274.tar.gz
llvm-47f9109dff80a1abbe2705ee71dc0882b1d62274.tar.bz2
[InstCombine] Guard against many users when swapping icmp operands
This addresses the compile-time regression reported on D144369. If we don't fold constant operands early, then we might end up walking very large use lists of constants here. Explicitly exclude constants, and also limit the number of inspected users to avoid degenerate cases like this. This entire transform shouldn't be part of InstCombine in the first place though.
Diffstat (limited to 'llvm/lib/Bitcode/Writer/BitcodeWriter.cpp')
0 files changed, 0 insertions, 0 deletions