[all-commits] [llvm/llvm-project] 10e767: Reland "[InstCombine] Fold (sub nuw X, (Y << nuw Z...

AtariDreams via All-commits all-commits at lists.llvm.org
Sun Jun 2 23:25:17 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 10e7671d9adf1da2f08d67fde6585c707ac4c1d2
      https://github.com/llvm/llvm-project/commit/10e7671d9adf1da2f08d67fde6585c707ac4c1d2
  Author: AtariDreams <gfunni234 at gmail.com>
  Date:   2024-06-03 (Mon, 03 Jun 2024)

  Changed paths:
    M llvm/lib/Transforms/InstCombine/InstCombineShifts.cpp
    M llvm/test/Transforms/InstCombine/lshr.ll

  Log Message:
  -----------
  Reland "[InstCombine] Fold (sub nuw X, (Y << nuw Z)) >>u exact Z --> (X >>u exact Z) sub nuw Y" (#93571)

This is the same fold as ((X << nuw Z) sub nuw Y) >>u exact Z --> X sub
nuw (Y >>u exact Z), but with the sub operands swapped.

Alive2 Proof:
https://alive2.llvm.org/ce/z/pT-RxG



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list