aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/CodeGen/CodeGenModule.cpp
diff options
context:
space:
mode:
authorRoman Lebedev <lebedev.ri@gmail.com>2020-11-03 15:32:31 +0300
committerRoman Lebedev <lebedev.ri@gmail.com>2020-11-03 16:06:52 +0300
commitc009d11bdac4a7f4a3a8ae85e42da053828a6f24 (patch)
treebd8c685a93845caf9523bd7f17b46bfa39f502c0 /clang/lib/CodeGen/CodeGenModule.cpp
parente465f9c3036b28bdbdbef03eee8fd022a3b6dcbf (diff)
downloadllvm-c009d11bdac4a7f4a3a8ae85e42da053828a6f24.zip
llvm-c009d11bdac4a7f4a3a8ae85e42da053828a6f24.tar.gz
llvm-c009d11bdac4a7f4a3a8ae85e42da053828a6f24.tar.bz2
[InstCombine] Perform C-(X+C2) --> (C-C2)-X transform before using Negator
In particular, it makes it fire for C=0, because negator doesn't want to perform that fold since in general it's not beneficial.
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
0 files changed, 0 insertions, 0 deletions