mirror of
https://github.com/intel/llvm.git
synced 2026-02-03 19:18:13 +08:00
Schedule discriminator pass.
This needs to modify a line table test to account for the new lexical block created to hold the new discriminator value. llvm-svn: 202754
This commit is contained in:
@@ -166,6 +166,11 @@ static void addSampleProfileLoaderPass(const PassManagerBuilder &Builder,
|
||||
PM.add(createSampleProfileLoaderPass(CGOpts.SampleProfileFile));
|
||||
}
|
||||
|
||||
static void addAddDiscriminatorsPass(const PassManagerBuilder &Builder,
|
||||
PassManagerBase &PM) {
|
||||
PM.add(createAddDiscriminatorsPass());
|
||||
}
|
||||
|
||||
static void addBoundsCheckingPass(const PassManagerBuilder &Builder,
|
||||
PassManagerBase &PM) {
|
||||
PM.add(createBoundsCheckingPass());
|
||||
@@ -246,6 +251,9 @@ void EmitAssemblyHelper::CreatePasses() {
|
||||
PMBuilder.DisableUnrollLoops = !CodeGenOpts.UnrollLoops;
|
||||
PMBuilder.RerollLoops = CodeGenOpts.RerollLoops;
|
||||
|
||||
PMBuilder.addExtension(PassManagerBuilder::EP_EarlyAsPossible,
|
||||
addAddDiscriminatorsPass);
|
||||
|
||||
if (!CodeGenOpts.SampleProfileFile.empty())
|
||||
PMBuilder.addExtension(PassManagerBuilder::EP_EarlyAsPossible,
|
||||
addSampleProfileLoaderPass);
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
// CHECK: call void @llvm.dbg.declare
|
||||
// CHECK: call void @llvm.dbg.declare(metadata !{{{.*}}}, metadata ![[CURRENT_ADDR:.*]]), !dbg ![[DBG1:.*]]
|
||||
// CHECK: unwind label %{{.*}}, !dbg ![[DBG1]]
|
||||
// CHECK: store i64 %{{.*}}, i64* %current_address, align 8, !dbg ![[DBG1]]
|
||||
// CHECK: store i64 %{{.*}}, i64* %current_address, align 8, !dbg ![[DBG4:.*]]
|
||||
// CHECK-NEXT: call void @llvm.dbg.declare(metadata !{{{.*}}}, metadata ![[FOUND_IT:.*]]), !dbg ![[DBG2:.*]]
|
||||
// CHECK: = landingpad
|
||||
// CHECK-NEXT: cleanup, !dbg ![[DBG3:.*]]
|
||||
@@ -15,6 +15,7 @@
|
||||
// CHECK-DAG: ![[DBG1]] = metadata !{i32 256,
|
||||
// CHECK-DAG: ![[DBG2]] = metadata !{i32 257,
|
||||
// CHECK-DAG: ![[DBG3]] = metadata !{i32 268,
|
||||
// CHECK-DAG: ![[DBG4]] = metadata !{i32 256,
|
||||
typedef unsigned long long uint64_t;
|
||||
template<class _Tp> class shared_ptr {
|
||||
public:
|
||||
|
||||
Reference in New Issue
Block a user