<commit_before>; This testcase tests to make sure a trapping instruction is hoisted when
; it is guaranteed to execute.
;
; RUN: llvm-as < %s | opt -licm | llvm-dis | grep -C2 "test" | grep div

%X = global int 0
declare void %foo()

int %test(bool %c) {
	%A = load int *%X
	br label %Loop
Loop:
	call void %foo()
	%B = div int 4, %A  ;; Should have hoisted this div!
        br bool %c, label %Loop, label %Out

Out:
	%C = sub int %A, %B
	ret int %C
}<commit_msg>Fix test that was failing because we were optimizing the program better than expected :)<commit_after>; This testcase tests to make sure a trapping instruction is hoisted when
; it is guaranteed to execute.
;
; RUN: llvm-as < %s | opt -licm | llvm-dis | grep -C2 "test" | grep div

%X = global int 0
declare void %foo(int)

int %test(bool %c) {
	%A = load int *%X
	br label %Loop
Loop:
	%B = div int 4, %A  ;; Should have hoisted this div!
	call void %foo(int %B)
        br bool %c, label %Loop, label %Out

Out:
	%C = sub int %A, %B
	ret int %C
}
{'fraction_non_alphanumeric': 0.12154150197628459, 'fraction_numerical': 0.005928853754940711, 'mean_word_length': 3.1859504132231407, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3397903', 'n_tokens_mistral': 380, 'n_tokens_neox': 365, 'n_words': 167}