[all-commits] [llvm/llvm-project] 278b40: [InstCombine] fold mul-with-overflow intrinsic wit...

Sanjay Patel via All-commits all-commits at lists.llvm.org
Mon Feb 28 11:14:03 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 278b407a30857ef12b8599cc1754179a289e8680
      https://github.com/llvm/llvm-project/commit/278b407a30857ef12b8599cc1754179a289e8680
  Author: Sanjay Patel <spatel at rotateright.com>
  Date:   2022-02-28 (Mon, 28 Feb 2022)

  Changed paths:
    M llvm/lib/Transforms/InstCombine/InstructionCombining.cpp
    M llvm/test/Transforms/InstCombine/with_overflow.ll

  Log Message:
  -----------
  [InstCombine] fold mul-with-overflow intrinsic with -1 operand

extractvalue (any_mul_with_overflow X, -1), 0 --> -X

There are similar other potential transforms that we could do as
noted by the last TODO in the test diffs.

Fixes #54053




More information about the All-commits mailing list