[all-commits] [llvm/llvm-project] 59e8ca: [InstCombine] add more tests for pow reassociation...

Sanjay Patel via All-commits all-commits at lists.llvm.org
Fri Jan 13 14:23:20 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 59e8ca5b330de09d68d26c868365c5e7fba05e4e
      https://github.com/llvm/llvm-project/commit/59e8ca5b330de09d68d26c868365c5e7fba05e4e
  Author: Sanjay Patel <spatel at rotateright.com>
  Date:   2023-01-13 (Fri, 13 Jan 2023)

  Changed paths:
    M llvm/test/Transforms/InstCombine/fmul-pow.ll

  Log Message:
  -----------
  [InstCombine] add more tests for pow reassociation; NFC


  Commit: 61af2ab68142729cbe34c41c8ee8e6f38759c4ed
      https://github.com/llvm/llvm-project/commit/61af2ab68142729cbe34c41c8ee8e6f38759c4ed
  Author: Sanjay Patel <spatel at rotateright.com>
  Date:   2023-01-13 (Fri, 13 Jan 2023)

  Changed paths:
    M llvm/lib/Transforms/InstCombine/InstCombineMulDivRem.cpp
    M llvm/test/Transforms/InstCombine/fmul-pow.ll

  Log Message:
  -----------
  [InstCombine] fold pow(X,Y) * X -> pow(X, Y+1) (with fast-math)

This is one of the patterns suggested in issue #34943.


  Commit: 072b03c4714ea43af56bbfa6e5a271ef1a1c9e0a
      https://github.com/llvm/llvm-project/commit/072b03c4714ea43af56bbfa6e5a271ef1a1c9e0a
  Author: Sanjay Patel <spatel at rotateright.com>
  Date:   2023-01-13 (Fri, 13 Jan 2023)

  Changed paths:
    M llvm/lib/Transforms/InstCombine/InstCombineMulDivRem.cpp
    M llvm/test/Transforms/InstCombine/fmul-pow.ll

  Log Message:
  -----------
  [InstCombine] fold pow(X,Y) / X -> pow(X, Y-1)

This is one of the patterns suggested in issue #34943.


Compare: https://github.com/llvm/llvm-project/compare/e461bdf65b66...072b03c4714e


More information about the All-commits mailing list