diff options
author | David Green <david.green@arm.com> | 2019-02-21 10:30:09 +0000 |
---|---|---|
committer | David Green <david.green@arm.com> | 2019-02-21 10:30:09 +0000 |
commit | 89efe24eba0b95c090c7e038f4ad78ad9a364d4d (patch) | |
tree | 7d34702b7dfcfd04ca3e6d3d998e962ff5473aff /llvm/test/CodeGen/ARM/intrinsics-overflow.ll | |
parent | 61cd368cdc87889d9697b1a2ecdc35857d34de09 (diff) | |
download | bcm5719-llvm-89efe24eba0b95c090c7e038f4ad78ad9a364d4d.tar.gz bcm5719-llvm-89efe24eba0b95c090c7e038f4ad78ad9a364d4d.zip |
[ARM] Add some missing thumb1 opcodes to enable peephole optimisation of CMPs
This adds a number of missing Thumb1 opcodes so that the peephole optimiser can
remove redundant CMP instructions.
Differential Revision: https://reviews.llvm.org/D57833
llvm-svn: 354564
Diffstat (limited to 'llvm/test/CodeGen/ARM/intrinsics-overflow.ll')
-rw-r--r-- | llvm/test/CodeGen/ARM/intrinsics-overflow.ll | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/test/CodeGen/ARM/intrinsics-overflow.ll b/llvm/test/CodeGen/ARM/intrinsics-overflow.ll index d4c20dfacce..c3f64072d7d 100644 --- a/llvm/test/CodeGen/ARM/intrinsics-overflow.ll +++ b/llvm/test/CodeGen/ARM/intrinsics-overflow.ll @@ -38,8 +38,7 @@ define i32 @sadd_overflow(i32 %a, i32 %b) #0 { ; ARM: movvc r[[R0]], #0 ; ARM: mov pc, lr - ; THUMBV6: adds r1, r0, r1 - ; THUMBV6: cmp r1, r0 + ; THUMBV6: adds r0, r0, r1 ; THUMBV6: bvc .LBB1_2 ; THUMBV7: adds r[[R2:[0-9]+]], r[[R0]], r[[R1:[0-9]+]] |