[all-commits] [llvm/llvm-project] 905b6b: [InstCombine] add tests for (pow2 >> X) <u C; NFC

Sanjay Patel via All-commits all-commits at lists.llvm.org
Wed Jun 29 09:31:50 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 905b6b3eddd70d27df7002e17e7c42f1c1d7c6aa
      https://github.com/llvm/llvm-project/commit/905b6b3eddd70d27df7002e17e7c42f1c1d7c6aa
  Author: Sanjay Patel <spatel at rotateright.com>
  Date:   2022-06-29 (Wed, 29 Jun 2022)

  Changed paths:
    M llvm/test/Transforms/InstCombine/icmp-shr.ll

  Log Message:
  -----------
  [InstCombine] add tests for (pow2 >> X) <u C; NFC

Adapted from af5e64df728f498ea9c6


  Commit: d4f39d8333324bdcf2056a2264bdc5f651ad01e2
      https://github.com/llvm/llvm-project/commit/d4f39d8333324bdcf2056a2264bdc5f651ad01e2
  Author: Sanjay Patel <spatel at rotateright.com>
  Date:   2022-06-29 (Wed, 29 Jun 2022)

  Changed paths:
    M llvm/lib/Transforms/InstCombine/InstCombineCompares.cpp
    M llvm/test/Transforms/InstCombine/icmp-shr.ll

  Log Message:
  -----------
  [InstCombine] add fold for (ShiftC >> X) >u C

This is the 'ugt' sibling to:
0399473de886595d

Decrement the input compare constant (and implicitly
decrement the new compare constant):
https://alive2.llvm.org/ce/z/iELmct


Compare: https://github.com/llvm/llvm-project/compare/a9a60f20e6cc...d4f39d833332


More information about the All-commits mailing list