[LLVMbugs] [Bug 13578] MachineCSE doesn't eliminate duplicate GOTPCREL loads
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Sat Aug 11 12:06:39 PDT 2012
http://llvm.org/bugs/show_bug.cgi?id=13578
Benjamin Kramer <benny.kra at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #4 from Benjamin Kramer <benny.kra at gmail.com> 2012-08-11 14:06:39 CDT ---
Ah, thanks for the pointer. Fixed in r161728.
Asm output is now:
_foo: ## @foo
.cfi_startproc
## BB#0:
pushq %rbx
Ltmp2:
.cfi_def_cfa_offset 16
Ltmp3:
.cfi_offset %rbx, -16
movq _glob at GOTPCREL(%rip), %rbx
movl $42, (%rbx)
callq _x
testb $1, %al
je LBB0_2
## BB#1: ## %a
movl (%rbx), %eax
popq %rbx
ret
LBB0_2: ## %b
xorl %eax, %eax
popq %rbx
ret
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
More information about the llvm-bugs
mailing list