aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Frontend/CompilerInvocation.cpp
diff options
context:
space:
mode:
authorshaojingzhi <shaojingzhi98@gmail.com>2023-12-04 21:14:59 +0800
committerGitHub <noreply@github.com>2023-12-04 14:14:59 +0100
commit9a99a1a39e1d067abb9a6cc0d53e7708d6c49995 (patch)
tree238c9056f8c7b42676a390e907c2d963b3c5eb14 /clang/lib/Frontend/CompilerInvocation.cpp
parent2377f20ac6719472308220e692f3651fbbf766f4 (diff)
downloadllvm-9a99a1a39e1d067abb9a6cc0d53e7708d6c49995.zip
llvm-9a99a1a39e1d067abb9a6cc0d53e7708d6c49995.tar.gz
llvm-9a99a1a39e1d067abb9a6cc0d53e7708d6c49995.tar.bz2
[InstCombine] Add one-use limitation to box multiply fold (#72876)
Check the operands of I are used in no more than one place, which can not be deleted, cause a mul instruction has far more weight than add and shl instruction in IR, thus this method cannot achieve the goal of simplifying instructions, just return null.
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions