diff options
| author | Daniel Jasper <djasper@google.com> | 2017-02-07 08:57:50 +0000 |
|---|---|---|
| committer | Daniel Jasper <djasper@google.com> | 2017-02-07 08:57:50 +0000 |
| commit | 84b3cc394d117ee5fed10fe1c0b9e76ad89ff2c9 (patch) | |
| tree | e8ead22eb40716cf7e7d1bfa2a917714b3295073 /llvm/test/CodeGen | |
| parent | 9191c3324a7138fcdf2d7f48dba4dc04b3c99aa7 (diff) | |
| download | bcm5719-llvm-84b3cc394d117ee5fed10fe1c0b9e76ad89ff2c9.tar.gz bcm5719-llvm-84b3cc394d117ee5fed10fe1c0b9e76ad89ff2c9.zip | |
Revert "[DAGCombiner] (add X, (adde Y, 0, Carry)) -> (adde X, Y, Carry)"
This reverts commit r294186.
On an internal test, this triggers an out-of-memory error on PPC,
presumably because there is another dagcombine that does the exact
opposite triggering and endless loop consuming more and more memory.
Chandler has started at creating a reduced test case and we'll attach it
as soon as possible.
llvm-svn: 294288
Diffstat (limited to 'llvm/test/CodeGen')
| -rw-r--r-- | llvm/test/CodeGen/X86/adde-carry.ll | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/llvm/test/CodeGen/X86/adde-carry.ll b/llvm/test/CodeGen/X86/adde-carry.ll index 62e7e7f8124..e111f683dd3 100644 --- a/llvm/test/CodeGen/X86/adde-carry.ll +++ b/llvm/test/CodeGen/X86/adde-carry.ll @@ -93,16 +93,17 @@ define %scalar @pr31719(%scalar* nocapture readonly %this, %scalar %arg.b) { ; CHECK-NEXT: sbbq %r10, %r10 ; CHECK-NEXT: andl $1, %r10d ; CHECK-NEXT: addq 8(%rsi), %rcx +; CHECK-NEXT: sbbq %r11, %r11 +; CHECK-NEXT: andl $1, %r11d +; CHECK-NEXT: addq %r10, %rcx +; CHECK-NEXT: adcq $0, %r11 +; CHECK-NEXT: addq 16(%rsi), %r8 ; CHECK-NEXT: sbbq %rax, %rax ; CHECK-NEXT: andl $1, %eax -; CHECK-NEXT: addq %r10, %rcx +; CHECK-NEXT: addq %r11, %r8 ; CHECK-NEXT: adcq $0, %rax -; CHECK-NEXT: addq 16(%rsi), %r8 -; CHECK-NEXT: sbbq %r10, %r10 -; CHECK-NEXT: andl $1, %r10d ; CHECK-NEXT: addq 24(%rsi), %r9 -; CHECK-NEXT: addq %rax, %r8 -; CHECK-NEXT: adcq %r10, %r9 +; CHECK-NEXT: addq %rax, %r9 ; CHECK-NEXT: movq %rdx, (%rdi) ; CHECK-NEXT: movq %rcx, 8(%rdi) ; CHECK-NEXT: movq %r8, 16(%rdi) |

