Chris Lattner cbf68dfbc0 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
2010-12-22 08:02:57 +00:00
..
2010-11-27 20:43:02 +00:00
2009-11-18 21:33:35 +00:00
2010-02-13 02:06:10 +00:00
2010-10-11 21:08:42 +00:00
2010-03-03 00:35:56 +00:00
2010-11-30 09:23:54 +00:00
2010-11-29 22:34:55 +00:00
2010-04-17 16:29:15 +00:00
2010-10-08 05:12:30 +00:00
2010-07-10 22:42:12 +00:00
2010-04-17 16:29:15 +00:00
2010-04-17 16:29:15 +00:00
2009-11-11 07:11:02 +00:00
2010-10-07 20:56:25 +00:00
2010-09-30 23:57:10 +00:00
2010-10-05 21:58:12 +00:00
2010-10-01 05:08:18 +00:00
2010-04-04 19:28:59 +00:00
2010-01-05 17:55:26 +00:00
2010-04-28 01:53:13 +00:00
2009-12-16 00:53:11 +00:00
2010-12-02 20:17:34 +00:00
2010-11-27 20:43:02 +00:00
2010-10-03 22:52:07 +00:00
2010-12-20 20:10:50 +00:00
2009-12-15 03:00:32 +00:00