[LLVMbugs] [Bug 749] [x86] Miscompilation of code, and extra loads

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Fri Apr 28 16:18:22 PDT 2006


evan.cheng at apple.com changed:

           What    |Removed                     |Added
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED

------- Additional Comments From evan.cheng at apple.com  2006-04-28 18:18 -------
We were previously generating a load from last after it has been modified. This is a isel folding bug.

This is now fixed. We now generates:

	mov %ESI, DWORD PTR [last]
	mov %EDI, %ESI
	inc %EDI
	mov %EAX, %EDX
	mov DWORD PTR [last], %EDI
	mov %EDI, DWORD PTR [block]
	mov BYTE PTR [%EDI + %ESI + 1], %AL
	mov %EAX, DWORD PTR [last]
	cmp %EAX, %ECX
	setl %AL
	cmp %EDX, 257
	setne %CL
	and %AL, %CL
	test %AL, %AL

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.

More information about the llvm-bugs mailing list