aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Frontend/CompilerInvocation.cpp
diff options
context:
space:
mode:
authorNikita Popov <nikita.ppv@gmail.com>2020-03-07 16:34:34 +0100
committerNikita Popov <nikita.ppv@gmail.com>2020-03-09 18:53:47 +0100
commit45555c381926050bc45a3372b1af0e15650371b6 (patch)
treef6a5d34bfb1b8d5ac628a178ade15b39aa0c394b /clang/lib/Frontend/CompilerInvocation.cpp
parenta8f76e99ba5966adc82afd98cea5d6239c1501ac (diff)
downloadllvm-45555c381926050bc45a3372b1af0e15650371b6.zip
llvm-45555c381926050bc45a3372b1af0e15650371b6.tar.gz
llvm-45555c381926050bc45a3372b1af0e15650371b6.tar.bz2
[InstSimplify] Simplify calls with "returned" attribute
If a call argument has the "returned" attribute, we can simplify the call to the value of that argument. The "-inst-simplify" pass already handled this for the constant integer argument case via known bits, which is invoked in SimplifyInstruction. However, non-constant (or non-int) arguments are not handled at all right now. This addresses one of the regressions from D75801. Differential Revision: https://reviews.llvm.org/D75815
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions