dtcxzyw / llvm-opt-benchmark

An LLVM IR dataset for data-driven compiler optimization research
https://dtcxzyw.github.io/llvm-opt-benchmark/
MIT License
18 stars 3 forks source link

Grep PR107259 #1276

Closed dtcxzyw closed 1 week ago

dtcxzyw commented 1 week ago
define i8 @src(i8 %x, i8 %y) {
  %add = add i8 %x, -1
  %inv = xor i8 %x, -1
  %and = and i8 %add, %inv
  %demanded = and i8 %and, %y
  ret i8 %demanded
}

https://github.com/llvm/llvm-project/pull/107259#issuecomment-2329785686

github-actions[bot] commented 1 week ago
openssl/optimized/libcrypto-lib-rsa_oaep.ll
  %add = add i8 %x, -1  ->  %sub.i119 = add i32 %call92, -1
  %inv = xor i8 %x, -1  ->  %not.i118 = xor i32 %call92, -1
  %and = and i8 %add, %inv  ->  %6 = and i32 %sub.i119, %not.i118
  %demanded = and i8 %and, %y  ->  %shr.neg.i.i117165 = and i32 %6, %sub.i115

openssl/optimized/libcrypto-shlib-rsa_oaep.ll
  %add = add i8 %x, -1  ->  %sub.i119 = add i32 %call92, -1
  %inv = xor i8 %x, -1  ->  %not.i118 = xor i32 %call92, -1
  %and = and i8 %add, %inv  ->  %6 = and i32 %sub.i119, %not.i118
  %demanded = and i8 %and, %y  ->  %shr.neg.i.i117165 = and i32 %6, %sub.i115

2 Occurrences