[all-commits] [llvm/llvm-project] ea7f17: [InstCombine] Simplify calls with casted `returned...

Johannes Doerfert via All-commits all-commits at lists.llvm.org
Wed Apr 15 22:57:58 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: ea7f17ee387062fcb74af2ba27c426a68c6bc8ad
      https://github.com/llvm/llvm-project/commit/ea7f17ee387062fcb74af2ba27c426a68c6bc8ad
  Author: Johannes Doerfert <johannes at jdoerfert.de>
  Date:   2020-04-16 (Thu, 16 Apr 2020)

  Changed paths:
    M llvm/lib/Transforms/InstCombine/InstCombineCalls.cpp
    M llvm/test/Transforms/InstCombine/call-returned.ll

  Log Message:
  -----------
  [InstCombine] Simplify calls with casted `returned` attribute

The handling of the `returned` attribute in D75815 did miss the case
where the argument is (bit)casted to a different type. This is
explicitly allowed by the language reference and exposed by the
Attributor.

Reviewed By: lebedev.ri

Differential Revision: https://reviews.llvm.org/D77977




More information about the All-commits mailing list