[all-commits] [llvm/llvm-project] 9cf3e3: [InstCombine] Explicitly fold `~(~X >>u Y)` into `...

Yingwei Zheng via All-commits all-commits at lists.llvm.org
Thu Dec 14 07:06:52 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 9cf3e31172b7b9966ce95d6a84ca09f8d0f6ebc1
      https://github.com/llvm/llvm-project/commit/9cf3e31172b7b9966ce95d6a84ca09f8d0f6ebc1
  Author: Yingwei Zheng <dtcxzyw2333 at gmail.com>
  Date:   2023-12-14 (Thu, 14 Dec 2023)

  Changed paths:
    M llvm/lib/Transforms/InstCombine/InstCombineAndOrXor.cpp
    M llvm/lib/Transforms/InstCombine/InstructionCombining.cpp
    A llvm/test/Transforms/InstCombine/pr75369.ll

  Log Message:
  -----------
  [InstCombine] Explicitly fold `~(~X >>u Y)` into `X >>s Y` (#75473)

Fixes #75369.

This patch explicitly folds `~(~X >>u Y)` into `X >>s Y` to fix assertion failure in #75369.




More information about the All-commits mailing list