https://bugs.llvm.org/show_bug.cgi?id=49561

            Bug ID: 49561
           Summary: [RGT] OpenMPIRBuilderTest.cpp missing cases
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Core LLVM classes
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected]

Three tests in OpenMPIRBuilderTest.cpp are looking for cases that don't happen.
Probably some additional cases should be added? or else the dead checks should
be removed/replaced with assertions.

In test ParallelSimple, the lambda PrivCB is never called with an alloca,
so the code from line 464 to the end of the lambda is dead.

In test ParallelIfCond, the lambda PrivCB is never called with an alloca,
so the code from line 769 to the end of the lambda is dead.

In test ParallelCancelBarrier, the 'if' on line 945:
    if (!isa<ReturnInst>(ExitBB->front())) {
never evaluates to true, i.e. the instruction is always ReturnInst,
so the body of the 'if' is dead.


Found by the Rotten Green Tests project.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to