[all-commits] [llvm/llvm-project] c7ab19: [Attributor][FIX] Transform invoke of nounwind to ...

Johannes Doerfert via All-commits all-commits at lists.llvm.org
Fri Nov 1 22:54:46 PDT 2019


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: c7ab19dbb0f1f5c76ff70c7acab9f20c796cafb3
      https://github.com/llvm/llvm-project/commit/c7ab19dbb0f1f5c76ff70c7acab9f20c796cafb3
  Author: Johannes Doerfert <johannes at jdoerfert.de>
  Date:   2019-11-02 (Sat, 02 Nov 2019)

  Changed paths:
    M llvm/lib/Transforms/IPO/Attributor.cpp
    M llvm/test/Transforms/FunctionAttrs/liveness.ll

  Log Message:
  -----------
  [Attributor][FIX] Transform invoke of nounwind to call + br %normal_dest

Even if the invoked function may-return, we can replace it with a call
and branch if it is nounwind. We had almost everything in place to do
this but did not which actually caused a crash when we removed the
landingpad from the actually dead unwind block.

Exposed by the IPConstantProp tests.




More information about the All-commits mailing list