[PATCH] D110979: Re-apply the fix on DwarfEHPrepare and add a test
Jameson Nash via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sat Oct 2 18:51:54 PDT 2021
This revision was automatically updated to reflect the committed changes.
Closed by commit rGe8806d748643: Re-apply the fix on DwarfEHPrepare and add a test (authored by tkf, committed by vtjnash).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D110979/new/
https://reviews.llvm.org/D110979
Files:
llvm/lib/CodeGen/DwarfEHPrepare.cpp
llvm/test/CodeGen/X86/dwarf-eh-prepare.ll
Index: llvm/test/CodeGen/X86/dwarf-eh-prepare.ll
===================================================================
--- llvm/test/CodeGen/X86/dwarf-eh-prepare.ll
+++ llvm/test/CodeGen/X86/dwarf-eh-prepare.ll
@@ -1,4 +1,4 @@
-; RUN: opt -mtriple=x86_64-linux-gnu -dwarfehprepare -simplifycfg-require-and-preserve-domtree=1 < %s -S | FileCheck %s
+; RUN: opt -mtriple=x86_64-linux-gnu -dwarfehprepare -simplifycfg-require-and-preserve-domtree=1 -run-twice < %s -S | FileCheck %s
; Check basic functionality of IR-to-IR DWARF EH preparation. This should
; eliminate resumes. This pass requires a TargetMachine, so we put it under X86
Index: llvm/lib/CodeGen/DwarfEHPrepare.cpp
===================================================================
--- llvm/lib/CodeGen/DwarfEHPrepare.cpp
+++ llvm/lib/CodeGen/DwarfEHPrepare.cpp
@@ -318,6 +318,11 @@
return prepareDwarfEH(OptLevel, RewindFunction, F, TLI, DT, TTI);
}
+ bool doFinalization(Module &M) override {
+ RewindFunction = nullptr;
+ return false;
+ }
+
void getAnalysisUsage(AnalysisUsage &AU) const override {
AU.addRequired<TargetPassConfig>();
AU.addRequired<TargetTransformInfoWrapperPass>();
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D110979.376728.patch
Type: text/x-patch
Size: 1185 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20211003/3b9ee67f/attachment.bin>
More information about the llvm-commits
mailing list