Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Grep PR122491 #1951

Closed
dtcxzyw opened this issue Jan 11, 2025 · 1 comment
Closed

Grep PR122491 #1951

dtcxzyw opened this issue Jan 11, 2025 · 1 comment
Labels

Comments

@dtcxzyw
Copy link
Owner

dtcxzyw commented Jan 11, 2025

define i32 @src1(i32 %len, i32 %y) {
entry:
  %0 = add i32 %len, %y
  %1 = icmp ne i32 %len, 0
  %umin.neg = sext i1 %1 to i32
  %2 = add i32 %0, %umin.neg
  ret i32 %2
}

llvm/llvm-project#122491

@dtcxzyw dtcxzyw added the grep label Jan 11, 2025
Copy link
Contributor

slurm/optimized/common_topo.ll
  %0 = add i32 %len, %y  ->  %spec.select43.us.i = add i32 %136, %.150.us.i
  %1 = icmp ne i32 %len, 0  ->  %137 = icmp eq i32 %136, 0
  %umin.neg = sext i1 %1 to i32  ->  %138 = sext i1 %137 to i32
  %2 = add i32 %0, %umin.neg  ->  %139 = add i32 %spec.select43.us.i, %138

ruby/optimized/regparse.ll
  %0 = add i32 %len, %y  ->  %1348 = add i32 %1338, 1
  %1 = icmp ne i32 %len, 0  ->  %1344 = icmp sgt i32 %1338, 0
  %umin.neg = sext i1 %1 to i32  ->  %1345 = sext i1 %1344 to i32
  %2 = add i32 %0, %umin.neg  ->  %spec.select319 = add i32 %1348, %1345

2 Occurrences

@dtcxzyw dtcxzyw closed this as completed Jan 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant