diff options
| author | Peter Collingbourne <peter@pcc.me.uk> | 2015-04-23 20:31:32 +0000 |
|---|---|---|
| committer | Peter Collingbourne <peter@pcc.me.uk> | 2015-04-23 20:31:32 +0000 |
| commit | cfee5b04bc510e90659eeb20127f9cda0b57f71f (patch) | |
| tree | 3573c1d6eae6d35b2ed28012b9c05e48334d8afd /llvm/test/CodeGen/Thumb2 | |
| parent | 652952315135e18c02c164f72bcc8da03f27b75d (diff) | |
| download | bcm5719-llvm-cfee5b04bc510e90659eeb20127f9cda0b57f71f.tar.gz bcm5719-llvm-cfee5b04bc510e90659eeb20127f9cda0b57f71f.zip | |
ARM: When re-creating a branch via InsertBranch, preserve CPSR flags.
In particular, this preserves the kill flag, which allows the Thumb2 cbn?z
optimization to be applied in cases where a branch has been re-created after
the live variables analysis pass, e.g. by the machine block placement pass.
This appears to be low risk; a number of other targets seem to already be
doing something similar, e.g. AArch64, PowerPC.
Differential Revision: http://reviews.llvm.org/D9184
llvm-svn: 235639
Diffstat (limited to 'llvm/test/CodeGen/Thumb2')
| -rw-r--r-- | llvm/test/CodeGen/Thumb2/v8_IT_5.ll | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/test/CodeGen/Thumb2/v8_IT_5.ll b/llvm/test/CodeGen/Thumb2/v8_IT_5.ll index 2da75ad2143..78b80d7dcde 100644 --- a/llvm/test/CodeGen/Thumb2/v8_IT_5.ll +++ b/llvm/test/CodeGen/Thumb2/v8_IT_5.ll @@ -3,8 +3,7 @@ ; CHECK: it ne ; CHECK-NEXT: cmpne ; CHECK-NEXT: bne [[JUMPTARGET:.LBB[0-9]+_[0-9]+]] -; CHECK: cmp -; CHECK-NEXT: beq +; CHECK: cbz ; CHECK-NEXT: %if.else163 ; CHECK-NEXT: mov.w ; CHECK-NEXT: b |

