mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-29 10:32:47 +00:00
94f7c7aeaa
Change the default for `-num-shuffles` to 5 and better document the algorithm in the header docs of `verify-uselistorder`. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@214419 91177308-0d34-0410-b5e6-96231b3b80d8
29 lines
1.1 KiB
LLVM
29 lines
1.1 KiB
LLVM
; RUN: llvm-as < %s | llvm-dis > %t0
|
|
; RUN: opt -S < %s > %t1
|
|
; RUN: diff %t0 %t1
|
|
; RUN: verify-uselistorder < %s -preserve-bc-use-list-order
|
|
; PR6140
|
|
|
|
; Make sure the flags are serialized/deserialized properly for both
|
|
; forward and backward references.
|
|
|
|
define void @foo() nounwind {
|
|
entry:
|
|
br label %first
|
|
|
|
second: ; preds = %first
|
|
%u = add nuw i32 %a, 0 ; <i32> [#uses=0]
|
|
%s = add nsw i32 %a, 0 ; <i32> [#uses=0]
|
|
%us = add nuw nsw i32 %a, 0 ; <i32> [#uses=0]
|
|
%z = add i32 %a, 0 ; <i32> [#uses=0]
|
|
unreachable
|
|
|
|
first: ; preds = %entry
|
|
%a = bitcast i32 0 to i32 ; <i32> [#uses=8]
|
|
%uu = add nuw i32 %a, 0 ; <i32> [#uses=0]
|
|
%ss = add nsw i32 %a, 0 ; <i32> [#uses=0]
|
|
%uuss = add nuw nsw i32 %a, 0 ; <i32> [#uses=0]
|
|
%zz = add i32 %a, 0 ; <i32> [#uses=0]
|
|
br label %second
|
|
}
|