[all-commits] [llvm/llvm-project] 53f4c4: [InstCombine] Do not introduce bitcasts for swifte...

Florian Hahn via All-commits all-commits at lists.llvm.org
Wed Oct 28 14:53:07 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 53f4c4b2cc51f4848dfc610a3a858ef821e39ae5
      https://github.com/llvm/llvm-project/commit/53f4c4b2cc51f4848dfc610a3a858ef821e39ae5
  Author: Florian Hahn <flo at fhahn.com>
  Date:   2020-10-28 (Wed, 28 Oct 2020)

  Changed paths:
    M llvm/lib/Transforms/InstCombine/InstCombineCalls.cpp
    A llvm/test/Transforms/InstCombine/swifterror-argument-bitcast-fold.ll

  Log Message:
  -----------
  [InstCombine] Do not introduce bitcasts for swifterror arguments.

The following constraints hold for swifterror values:

    A swifterror value (either the parameter or the alloca) can only
    be loaded and stored from, or used as a swifterror argument.

This patch updates instcombine to not try to convert a bitcast of a
function into a bitcast of a swifterror argument.

Reviewed By: rjmccall

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




More information about the All-commits mailing list