diff options
author | Saleem Abdulrasool <compnerd@compnerd.org> | 2016-10-31 22:12:37 +0000 |
---|---|---|
committer | Saleem Abdulrasool <compnerd@compnerd.org> | 2016-10-31 22:12:37 +0000 |
commit | e1aa782bd073925dae4c3069e396bdd77e2199a1 (patch) | |
tree | 30ac281c976b9b90ae7049c89ee184e4f9a0dfd0 /llvm/test/CodeGen/ARM/Windows/division-range.ll | |
parent | 002af9bbcec16fea530d161b23cc2589fe0798b7 (diff) | |
download | bcm5719-llvm-e1aa782bd073925dae4c3069e396bdd77e2199a1.tar.gz bcm5719-llvm-e1aa782bd073925dae4c3069e396bdd77e2199a1.zip |
CodeGen: further loosen -O0 CG for WoA division
Generate the slowest possible codepath for noopt CodeGen. Even trying to be
clever with the negated jump can cause out-of-range jumps. Use a wide branch
instead. Although the code is modelled simplistically, the later optimizations
would recombine the branching into `cbz` if possible. This re-enables the
previous optimization as well as hopefully gives us working code in all cases.
Addresses PR30356!
llvm-svn: 285649
Diffstat (limited to 'llvm/test/CodeGen/ARM/Windows/division-range.ll')
-rw-r--r-- | llvm/test/CodeGen/ARM/Windows/division-range.ll | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/test/CodeGen/ARM/Windows/division-range.ll b/llvm/test/CodeGen/ARM/Windows/division-range.ll index 9b1920c840e..b14339e30ad 100644 --- a/llvm/test/CodeGen/ARM/Windows/division-range.ll +++ b/llvm/test/CodeGen/ARM/Windows/division-range.ll @@ -9,7 +9,7 @@ entry: ret i32 %div } -; CHECK: cbnz r1, #0 -; CHECK: __brkdiv0 +; CHECK: cmp r1, #0 +; CHECK: beq # ; CHECK: bl |