[all-commits] [llvm/llvm-project] 6cbcbe: [InstCombine] Precommit tests for PR67216

Allen via All-commits all-commits at lists.llvm.org
Fri Oct 20 18:01:53 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 6cbcbecf53a83e7a9b3b9fc2fd1a1d8a82a04892
      https://github.com/llvm/llvm-project/commit/6cbcbecf53a83e7a9b3b9fc2fd1a1d8a82a04892
  Author: zhongyunde 00443407 <zhongyunde at huawei.com>
  Date:   2023-10-21 (Sat, 21 Oct 2023)

  Changed paths:
    M llvm/test/Transforms/InstCombine/powi.ll

  Log Message:
  -----------
  [InstCombine] Precommit tests for PR67216


  Commit: 7e3d1103e6e7a7fa9b5f50222732e734d171bc86
      https://github.com/llvm/llvm-project/commit/7e3d1103e6e7a7fa9b5f50222732e734d171bc86
  Author: zhongyunde 00443407 <zhongyunde at huawei.com>
  Date:   2023-10-21 (Sat, 21 Oct 2023)

  Changed paths:
    M llvm/lib/Transforms/InstCombine/InstCombineMulDivRem.cpp
    M llvm/test/Transforms/InstCombine/powi.ll

  Log Message:
  -----------
  [InstCombine] optimize powi(X,Y)/X with Ofast (#67236)

Try to transform the powi(X, Y) / X into powi(X, Y-1) with Ofast.
For this case, when the Y is 3, then powi(X, 2) is replaced by X * X in
the further step.

Fixes https://github.com/llvm/llvm-project/pull/67216
Reviewed By: dtcxzyw, nikic, jcranmer-intel


Compare: https://github.com/llvm/llvm-project/compare/7c0a589af973...7e3d1103e6e7


More information about the All-commits mailing list