aboutsummaryrefslogtreecommitdiff
path: root/lib/Analysis/LibCallSemantics.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-11-27 00:34:38 +0000
committerChris Lattner <sabre@nondot.org>2009-11-27 00:34:38 +0000
commite19e4baf3b4f145fad122de7e6a02ed3a68bc082 (patch)
tree9809e0aee28bbf9b3d16ca3ffb68ef7eea5b988a /lib/Analysis/LibCallSemantics.cpp
parentc514c1f5218b8fe7499a0b9a4737860344cf4c43 (diff)
teach phi translation of GEPs to simplify geps like 'gep x, 0'.
This allows us to compile the example from PR5313 into: LBB1_2: ## %bb incl %ecx movb %al, (%rsi) movslq %ecx, %rax movb (%rdi,%rax), %al testb %al, %al jne LBB1_2 instead of: LBB1_2: ## %bb movslq %eax, %rcx incl %eax movb (%rdi,%rcx), %cl movb %cl, (%rsi) movslq %eax, %rcx cmpb $0, (%rdi,%rcx) jne LBB1_2 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89981 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis/LibCallSemantics.cpp')
0 files changed, 0 insertions, 0 deletions