Skip to content
Snippets Groups Projects
Commit 7b25bf07 authored by Reid Spencer's avatar Reid Spencer
Browse files

Back out last revision now that llvm-upgrade can remove useless bitcasts.

This serves as a test of that feature.

llvm-svn: 32806
parent 97f4ee7e
No related branches found
No related tags found
No related merge requests found
; RUN: llvm-upgrade < %s | llvm-as | opt -licm | llvm-dis ; RUN: llvm-upgrade < %s | llvm-as | opt -licm | llvm-dis
void "testfunc"(int %i.s) { void "testfunc"(int %i) {
br label %Loop br label %Loop
Loop: Loop:
%j = phi uint [0, %0], [%Next, %Loop] %j = phi uint [0, %0], [%Next, %Loop]
%i = cast int %i.s to uint %i = cast int %i to uint
%i2 = mul uint %i, 17 %i2 = mul uint %i, 17
%Next = add uint %j, %i2 %Next = add uint %j, %i2
%cond = seteq uint %Next, 0 %cond = seteq uint %Next, 0
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment