aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/CodeGen/CGClass.cpp
diff options
context:
space:
mode:
authorRui Ueyama <ruiu@google.com>2015-09-15 21:17:12 +0000
committerRui Ueyama <ruiu@google.com>2015-09-15 21:17:12 +0000
commitc26bbfe6b623a26907025124fb8bc9946511c43a (patch)
tree967c840cc5ad4d0f779b6e2c1946e0586cb972b2 /clang/lib/CodeGen/CGClass.cpp
parent151c032c86aa7de4244a9ed52d420ecb09550d0b (diff)
downloadllvm-c26bbfe6b623a26907025124fb8bc9946511c43a.zip
llvm-c26bbfe6b623a26907025124fb8bc9946511c43a.tar.gz
llvm-c26bbfe6b623a26907025124fb8bc9946511c43a.tar.bz2
COFF: Add a test for ICF which LLD cannot handle yet.
In this test, we have two functions, foo and bar. MSVC linker can choose one and discard the other using ICF. LLD cannot. I add this test as a TODO. foo and bar are conceptually equivalent to the following: void foo() { foo(); } void bar() { foo(); } foo and bar are effectively the same function. If foo and bar are compiled to the same instructions, both their contents (foo and bar) and relocation targets (foo) become the same, so from the ICF point of view, they are reducible. But their graphs are not isomorphic! LLD's ICF algorithm cannot handle this case yet. llvm-svn: 247721
Diffstat (limited to 'clang/lib/CodeGen/CGClass.cpp')
0 files changed, 0 insertions, 0 deletions