diff options
author | Jeremy Morse <jeremy.morse@sony.com> | 2025-07-15 15:34:10 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-07-15 15:34:10 +0100 |
commit | 57a5f9c47e063701ac7d13a5efd993e839e148eb (patch) | |
tree | e0b6bac122d092b31be4f204c5998a8add1accc3 /llvm/unittests/Frontend/OpenMPIRBuilderTest.cpp | |
parent | 8db92a7d99f2b1a64d34c2fe3c295e555caa35f2 (diff) | |
download | llvm-57a5f9c47e063701ac7d13a5efd993e839e148eb.zip llvm-57a5f9c47e063701ac7d13a5efd993e839e148eb.tar.gz llvm-57a5f9c47e063701ac7d13a5efd993e839e148eb.tar.bz2 |
[DebugInfo][RemoveDIs] Suppress getNextNonDebugInfoInstruction (#144383)
There are no longer debug-info instructions, thus we don't need this
skipping. Horray!
Diffstat (limited to 'llvm/unittests/Frontend/OpenMPIRBuilderTest.cpp')
-rw-r--r-- | llvm/unittests/Frontend/OpenMPIRBuilderTest.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/llvm/unittests/Frontend/OpenMPIRBuilderTest.cpp b/llvm/unittests/Frontend/OpenMPIRBuilderTest.cpp index d019ade..55dc8a7 100644 --- a/llvm/unittests/Frontend/OpenMPIRBuilderTest.cpp +++ b/llvm/unittests/Frontend/OpenMPIRBuilderTest.cpp @@ -4655,7 +4655,7 @@ TEST_F(OpenMPIRBuilderTest, CreateTeamsWithThreadLimit) { // Verifying that the next instruction to execute is kmpc_fork_teams BranchInst *BrInst = - dyn_cast<BranchInst>(PushNumTeamsCallInst->getNextNonDebugInstruction()); + dyn_cast<BranchInst>(PushNumTeamsCallInst->getNextNode()); ASSERT_NE(BrInst, nullptr); ASSERT_EQ(BrInst->getNumSuccessors(), 1U); BasicBlock::iterator NextInstruction = @@ -4712,7 +4712,7 @@ TEST_F(OpenMPIRBuilderTest, CreateTeamsWithNumTeamsUpper) { // Verifying that the next instruction to execute is kmpc_fork_teams BranchInst *BrInst = - dyn_cast<BranchInst>(PushNumTeamsCallInst->getNextNonDebugInstruction()); + dyn_cast<BranchInst>(PushNumTeamsCallInst->getNextNode()); ASSERT_NE(BrInst, nullptr); ASSERT_EQ(BrInst->getNumSuccessors(), 1U); BasicBlock::iterator NextInstruction = @@ -4772,7 +4772,7 @@ TEST_F(OpenMPIRBuilderTest, CreateTeamsWithNumTeamsBoth) { // Verifying that the next instruction to execute is kmpc_fork_teams BranchInst *BrInst = - dyn_cast<BranchInst>(PushNumTeamsCallInst->getNextNonDebugInstruction()); + dyn_cast<BranchInst>(PushNumTeamsCallInst->getNextNode()); ASSERT_NE(BrInst, nullptr); ASSERT_EQ(BrInst->getNumSuccessors(), 1U); BasicBlock::iterator NextInstruction = @@ -4838,7 +4838,7 @@ TEST_F(OpenMPIRBuilderTest, CreateTeamsWithNumTeamsAndThreadLimit) { // Verifying that the next instruction to execute is kmpc_fork_teams BranchInst *BrInst = - dyn_cast<BranchInst>(PushNumTeamsCallInst->getNextNonDebugInstruction()); + dyn_cast<BranchInst>(PushNumTeamsCallInst->getNextNode()); ASSERT_NE(BrInst, nullptr); ASSERT_EQ(BrInst->getNumSuccessors(), 1U); BasicBlock::iterator NextInstruction = @@ -7349,8 +7349,8 @@ TEST_F(OpenMPIRBuilderTest, CreateTaskIfCondition) { EXPECT_EQ(TaskBeginIfCall->getParent(), IfConditionBranchInst->getSuccessor(1)); - EXPECT_EQ(TaskBeginIfCall->getNextNonDebugInstruction(), OulinedFnCall); - EXPECT_EQ(OulinedFnCall->getNextNonDebugInstruction(), TaskCompleteCall); + EXPECT_EQ(TaskBeginIfCall->getNextNode(), OulinedFnCall); + EXPECT_EQ(OulinedFnCall->getNextNode(), TaskCompleteCall); } TEST_F(OpenMPIRBuilderTest, CreateTaskgroup) { @@ -7434,12 +7434,12 @@ TEST_F(OpenMPIRBuilderTest, CreateTaskgroup) { OMPRTL___kmpc_global_thread_num)); // Checking the general structure of the IR generated is same as expected. - Instruction *GeneratedStoreInst = TaskgroupCall->getNextNonDebugInstruction(); + Instruction *GeneratedStoreInst = TaskgroupCall->getNextNode(); EXPECT_EQ(GeneratedStoreInst, InternalStoreInst); Instruction *GeneratedLoad32 = - GeneratedStoreInst->getNextNonDebugInstruction(); + GeneratedStoreInst->getNextNode(); EXPECT_EQ(GeneratedLoad32, InternalLoad32); - Instruction *GeneratedLoad128 = GeneratedLoad32->getNextNonDebugInstruction(); + Instruction *GeneratedLoad128 = GeneratedLoad32->getNextNode(); EXPECT_EQ(GeneratedLoad128, InternalLoad128); // Checking the ordering because of the if statements and that |