[all-commits] [llvm/llvm-project] 0d454d: [InstCombine] Fold xor of icmps using range inform...

Yingwei Zheng via All-commits all-commits at lists.llvm.org
Sun Dec 24 15:14:45 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 0d454d6e591a579f450093c4ba8c49675e1643ad
      https://github.com/llvm/llvm-project/commit/0d454d6e591a579f450093c4ba8c49675e1643ad
  Author: Yingwei Zheng <dtcxzyw2333 at gmail.com>
  Date:   2023-12-25 (Mon, 25 Dec 2023)

  Changed paths:
    M llvm/lib/Transforms/InstCombine/InstCombineAndOrXor.cpp
    M llvm/test/Transforms/InstCombine/and-or-icmps.ll
    M llvm/test/Transforms/InstCombine/xor-icmps.ll

  Log Message:
  -----------
  [InstCombine] Fold xor of icmps using range information (#76334)

This patch folds xor of icmps into a single comparison using range-based reasoning as `foldAndOrOfICmpsUsingRanges` does.
Fixes #70928.




More information about the All-commits mailing list