commit | e19e4baf3b4f145fad122de7e6a02ed3a68bc082 | [log] [tgz] |
---|---|---|
author | Chris Lattner <sabre@nondot.org> | Fri Nov 27 00:34:38 2009 +0000 |
committer | Chris Lattner <sabre@nondot.org> | Fri Nov 27 00:34:38 2009 +0000 |
tree | 9809e0aee28bbf9b3d16ca3ffb68ef7eea5b988a | |
parent | c514c1f5218b8fe7499a0b9a4737860344cf4c43 [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