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 | cbf68dfbc0b36de8ef20bb42ce0c7d75cb132fc7 (patch) | |
| tree | 6eae5a8ce6203fee8812ca0e51d508d1e07a7823 /lib/CodeGen/SplitKit.cpp | |
| parent | 7a2a7faf9cfdbdf5f1de720385dc8a0009cd60a6 (diff) | |
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.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@122392 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/SplitKit.cpp')
0 files changed, 0 insertions, 0 deletions
