[PATCH] X86: lower MO_GOT_ABSOLUTE_ADDRESS in LowerSymbolOperand like all the other MO_ types.
Larry D'Anna
larry at elder-gods.org
Mon Jun 2 12:35:35 PDT 2014
I tested this by self-compiling a i686 llvm and running the regression tests:
* applied patch
* compiled llvm+clang with native compiler
* used the llvm I just built to build a i686-linux-gnu llvm
* ran the tests on that
I also scanned the resulting object files for the optimization that was disabled
by the FIXMEs that I removed. It should look like a add32ri instruction with a
GOTPC reloc on the immediate operand, which has been folded into a add32mi
instruction. This did occur in ARMDisassembler.cpp.
Sorry for the mis-formatted attempt at submitting the patch.
More information about the llvm-commits
mailing list