[PATCH] D132105: [InstCombine] Fix freeze instruction getting inserted before landingpad

Danila Malyutin via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Aug 17 23:54:28 PDT 2022


danilaml created this revision.
Herald added a subscriber: hiraditya.
Herald added a project: All.
danilaml requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

The code would use first non-phi instruction as an insertion point, however
this could lead to freeze getting inserted between phi and landingpad
causing a verifier assert.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D132105

Files:
  llvm/lib/Transforms/InstCombine/InstructionCombining.cpp
  llvm/test/Transforms/InstCombine/freeze-landingpad.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D132105.453542.patch
Type: text/x-patch
Size: 4532 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220818/3d230aaf/attachment.bin>


More information about the llvm-commits mailing list