diff options
author | Chris Lattner <sabre@nondot.org> | 2010-12-22 08:02:57 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2010-12-22 08:02:57 +0000 |
commit | cafc1e60bb25db63a8d4dacf1cd026937aab217a (patch) | |
tree | 6c78506d1543e442f8e07f52b1726b11474f910e /clang/lib/FrontendTool/ExecuteCompilerInvocation.cpp | |
parent | 9a499e96eb394aa84bdb06b7d42b7d29ce9020d6 (diff) | |
download | llvm-cafc1e60bb25db63a8d4dacf1cd026937aab217a.zip llvm-cafc1e60bb25db63a8d4dacf1cd026937aab217a.tar.gz llvm-cafc1e60bb25db63a8d4dacf1cd026937aab217a.tar.bz2 |
Fix a bug in ReduceLoadWidth that wasn't handling extending
loads properly. We miscompiled the testcase into:
_test: ## @test
movl $128, (%rdi)
movzbl 1(%rdi), %eax
ret
Now we get a proper:
_test: ## @test
movl $128, (%rdi)
movsbl (%rdi), %eax
movzbl %ah, %eax
ret
This fixes PR8757.
llvm-svn: 122392
Diffstat (limited to 'clang/lib/FrontendTool/ExecuteCompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions