diff options
author | Chris Lattner <sabre@nondot.org> | 2011-08-11 06:26:54 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2011-08-11 06:26:54 +0000 |
commit | 96710b43087072072b9e752f4f116fb4192d8f06 (patch) | |
tree | e9dc58afa0bc2a733316550c197b5942834afe09 /llvm/lib/Object | |
parent | 6d64a738faa269614499834317aca6af5956395b (diff) | |
download | bcm5719-llvm-96710b43087072072b9e752f4f116fb4192d8f06.tar.gz bcm5719-llvm-96710b43087072072b9e752f4f116fb4192d8f06.zip |
fix PR10605 / rdar://9930964 by adding a pretty scary missed check.
It's somewhat surprising anything works without this. Before we would
compile the testcase into:
test: # @test
movl $4, 8(%rdi)
movl 8(%rdi), %eax
orl %esi, %eax
cmpl $32, %edx
movl %eax, -4(%rsp) # 4-byte Spill
je .LBB0_2
now we produce:
test: # @test
movl 8(%rdi), %eax
movl $4, 8(%rdi)
orl %esi, %eax
cmpl $32, %edx
movl %eax, -4(%rsp) # 4-byte Spill
je .LBB0_2
llvm-svn: 137303
Diffstat (limited to 'llvm/lib/Object')
0 files changed, 0 insertions, 0 deletions