mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-01 00:12:50 +01:00
bf5c9cd119
Optimize trivial branches in CodeGenPrepare, which often get created from the lowering of objectsize intrinsics. Unfortunately, a number of tests were relying on llc not optimizing trivial branches, so I had to add an option to allow them to continue to test what they originally tested. This fixes <rdar://problem/8785296> and <rdar://problem/9112893>. llvm-svn: 127498
22 lines
438 B
LLVM
22 lines
438 B
LLVM
; RUN: llc < %s -march=x86 -disable-cgp-branch-opts | grep movzbl
|
|
; PR3366
|
|
|
|
define void @_ada_c34002a() nounwind {
|
|
entry:
|
|
%0 = load i8* null, align 1
|
|
%1 = sdiv i8 90, %0
|
|
%2 = icmp ne i8 %1, 3
|
|
%3 = zext i1 %2 to i8
|
|
%toBool449 = icmp ne i8 %3, 0
|
|
%4 = or i1 false, %toBool449
|
|
%5 = zext i1 %4 to i8
|
|
%toBool450 = icmp ne i8 %5, 0
|
|
br i1 %toBool450, label %bb451, label %bb457
|
|
|
|
bb451:
|
|
br label %bb457
|
|
|
|
bb457:
|
|
unreachable
|
|
}
|