summaryrefslogtreecommitdiffstats
path: root/lldb/source/Core/SourceManager.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2011-04-26 01:21:15 +0000
committerChris Lattner <sabre@nondot.org>2011-04-26 01:21:15 +0000
commit6f83d06ffa19e4321cb603188e1b922bc5c7196c (patch)
treed5072c030e17e899b00cc1b63c4011dcaa27cecd /lldb/source/Core/SourceManager.cpp
parent6f095d613a406b64465b918d2cc47fe3e13ad8b8 (diff)
downloadbcm5719-llvm-6f83d06ffa19e4321cb603188e1b922bc5c7196c.tar.gz
bcm5719-llvm-6f83d06ffa19e4321cb603188e1b922bc5c7196c.zip
Enhance MemDep: When alias analysis returns a partial alias result,
return it as a clobber. This allows GVN to do smart things. Enhance GVN to be smart about the case when a small load is clobbered by a larger overlapping load. In this case, forward the value. This allows us to compile stuff like this: int test(void *P) { int tmp = *(unsigned int*)P; return tmp+*((unsigned char*)P+1); } into: _test: ## @test movl (%rdi), %ecx movzbl %ch, %eax addl %ecx, %eax ret which has one load. We already handled the case where the smaller load was from a must-aliased base pointer. llvm-svn: 130180
Diffstat (limited to 'lldb/source/Core/SourceManager.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud