1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 19:23:23 +01:00
llvm-mirror/lib/Transforms
Dávid Bolvanský 112f5ef17b [InstCombine] Transform (A + B) - (A & B) to A | B (PR48604)
define i32 @src(i32 %x, i32 %y) {
%0:
  %a = add i32 %x, %y
  %o = and i32 %x, %y
  %r = sub i32 %a, %o
  ret i32 %r
}
=>
define i32 @tgt(i32 %x, i32 %y) {
%0:
  %b = or i32 %x, %y
  ret i32 %b
}
Transformation seems to be correct!

https://alive2.llvm.org/ce/z/2fhW6r
2020-12-31 15:04:32 +01:00
..
AggressiveInstCombine [AggressiveInstCombine] Generalize foldGuardedRotateToFunnelShift to generic funnel shifts (REAPPLIED) 2020-12-21 15:22:27 +00:00
CFGuard llvmbuildectomy - replace llvm-build by plain cmake 2020-11-13 10:35:24 +01:00
Coroutines Add a llvm.coro.end.async intrinsic 2020-12-22 10:52:28 -08:00
Hello
HelloNew llvmbuildectomy - replace llvm-build by plain cmake 2020-11-13 10:35:24 +01:00
InstCombine [InstCombine] Transform (A + B) - (A & B) to A | B (PR48604) 2020-12-31 15:04:32 +01:00
Instrumentation [PGO] Use isa instead of dyn_cast (NFC) 2020-12-30 17:45:38 -08:00
IPO Fix LLVM_ENABLE_MODULES=On build 2020-12-30 10:54:04 -08:00
ObjCARC [ObjC][ARC] Fix a bug where the inline-asm retain/claim RV marker wasn't 2020-12-18 16:59:06 -08:00
Scalar Revert "[LoopDeletion] Allows deletion of possibly infinite side-effect free loops" 2020-12-31 11:47:49 +00:00
Utils Revert "[LoopDeletion] Allows deletion of possibly infinite side-effect free loops" 2020-12-31 11:47:49 +00:00
Vectorize [LoopUtils] reduce FMF and min/max complexity when forming reductions 2020-12-30 15:22:26 -05:00
CMakeLists.txt