[PATCH] D67201: [Windows] Replace TrapUnreachable with an int3 insertion pass

Reid Kleckner via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Sep 4 16:37:16 PDT 2019


rnk created this revision.
rnk added reviewers: probinson, hans, mstorsjo.
Herald added subscribers: jfb, hiraditya, mgorny.
Herald added a project: LLVM.

This is an alternative to D66980 <https://reviews.llvm.org/D66980>, which was reverted. Instead of
inserting a pseudo instruction that optionally expands to nothing, add a
pass that inserts int3 when appropriate after basic block layout.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D67201

Files:
  llvm/lib/Target/X86/CMakeLists.txt
  llvm/lib/Target/X86/X86.h
  llvm/lib/Target/X86/X86AvoidTrailingCall.cpp
  llvm/lib/Target/X86/X86TargetMachine.cpp
  llvm/test/CodeGen/WinEH/wineh-noret-cleanup.ll
  llvm/test/CodeGen/X86/br-fold.ll
  llvm/test/CodeGen/X86/catchpad-lifetime.ll
  llvm/test/CodeGen/X86/catchpad-regmask.ll
  llvm/test/CodeGen/X86/catchret-regmask.ll
  llvm/test/CodeGen/X86/empty-function.ll
  llvm/test/CodeGen/X86/funclet-layout.ll
  llvm/test/CodeGen/X86/noreturn-call-win64.ll
  llvm/test/CodeGen/X86/pr24374.ll
  llvm/test/CodeGen/X86/trap.ll
  llvm/test/CodeGen/X86/unreachable-trap.ll
  llvm/test/CodeGen/X86/win64-eh-empty-block.ll
  llvm/test/CodeGen/X86/win64_call_epi.ll
  llvm/test/CodeGen/X86/win64_eh.ll
  llvm/test/CodeGen/X86/wineh-coreclr.ll
  llvm/test/DebugInfo/COFF/local-variable-gap.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D67201.218810.patch
Type: text/x-patch
Size: 25163 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190904/be45237a/attachment-0001.bin>


More information about the llvm-commits mailing list