summaryrefslogtreecommitdiff
path: root/utils/TableGen/FastISelEmitter.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2011-04-17 17:47:38 +0000
committerChris Lattner <sabre@nondot.org>2011-04-17 17:47:38 +0000
commit0a1c997c27706e315efb61b8b3e110d42cbaae64 (patch)
tree2500a0cef747db77484d7d4c86c879c7ea0abd92 /utils/TableGen/FastISelEmitter.cpp
parent685090f5988a03da1a515493bad1e592d26b9956 (diff)
downloadllvm-0a1c997c27706e315efb61b8b3e110d42cbaae64.tar.gz
llvm-0a1c997c27706e315efb61b8b3e110d42cbaae64.tar.bz2
llvm-0a1c997c27706e315efb61b8b3e110d42cbaae64.tar.xz
fix an x86 fast isel issue where we'd completely give up on folding an address
when we have a global variable base an an index. Instead, just give up on folding the global variable. Before we'd geenrate: _test: ## @test ## BB#0: movq _rtx_length@GOTPCREL(%rip), %rax leaq (%rax), %rax addq %rdi, %rax movzbl (%rax), %eax ret now we generate: _test: ## @test ## BB#0: movq _rtx_length@GOTPCREL(%rip), %rax movzbl (%rax,%rdi), %eax ret The difference is even more significant when there is a scale involved. This fixes rdar://9289558 - total fail with addr mode formation at -O0/x86-64 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@129664 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils/TableGen/FastISelEmitter.cpp')
0 files changed, 0 insertions, 0 deletions