[llvm-bugs] [Bug 48992] New: LLVM fails some PassBuilderCallbacks tests with 12.0.0-rc1
via llvm-bugs
llvm-bugs at lists.llvm.org
Mon Feb 1 12:37:06 PST 2021
https://bugs.llvm.org/show_bug.cgi?id=48992
Bug ID: 48992
Summary: LLVM fails some PassBuilderCallbacks tests with
12.0.0-rc1
Product: new-bugs
Version: unspecified
Hardware: PC
OS: Linux
Status: NEW
Severity: enhancement
Priority: P
Component: new bugs
Assignee: unassignedbugs at nondot.org
Reporter: marvin.schmidt1987 at gmail.com
CC: htmldeveloper at gmail.com, llvm-bugs at lists.llvm.org
On Exherbo I see the following test failures with 12.0.0-rc1:
Failed Tests (10):
LLVM-Unit :: IR/./IRTests/CGSCCCallbacksTest.InstrumentedInvalidatingPasses
LLVM-Unit :: IR/./IRTests/CGSCCCallbacksTest.InstrumentedPasses
LLVM-Unit :: IR/./IRTests/CGSCCCallbacksTest.InstrumentedSkippedPasses
LLVM-Unit :: IR/./IRTests/FunctionCallbacksTest.InstrumentedPasses
LLVM-Unit :: IR/./IRTests/FunctionCallbacksTest.InstrumentedSkippedPasses
LLVM-Unit ::
IR/./IRTests/LoopCallbacksTest.InstrumentedInvalidatingLoopNestPasses
LLVM-Unit :: IR/./IRTests/LoopCallbacksTest.InstrumentedInvalidatingPasses
LLVM-Unit :: IR/./IRTests/LoopCallbacksTest.InstrumentedPasses
LLVM-Unit :: IR/./IRTests/LoopCallbacksTest.InstrumentedSkippedPasses
LLVM-Unit :: IR/./IRTests/ModuleCallbacksTest.InstrumentedSkippedPasses
Testing Time: 205.97s
Unsupported : 1522
Passed : 40384
Expectedly Failed: 143
Failed : 10
The tests failures all look like this:
[==========] Running 1 test from 1 test case.
[----------] Global test environment set-up.
[----------] 1 test from LoopCallbacksTest
[ RUN ] LoopCallbacksTest.InstrumentedInvalidatingPasses
unknown file: Failure
Unexpected mock function call - returning directly.
Function call: runBeforeNonSkippedPass("PassManager<llvm::Function>",
8-byte object <10-98 B3-CF 9C-55 00-00>)
Google Mock tried the following 4 expectations, but none matched:
/var/tmp/paludis/build/dev-lang-llvm-12.0.0_rc1/work/llvm-project/llvm/unittests/IR/PassBuilderCallbacksTest.cpp:390:
tried expectation #0: EXPECT_CALL(*this,
runBeforeNonSkippedPass(Not(HasNameRegex("Mock")), HasName(IRName)))...
Expected arg #1: has name "<string>"
Actual: 8-byte object <30-98 B3-CF 9C-55 00-00>, has name
'<UNKNOWN>'
Expected: to be called any number of times
Actual: called once - satisfied and active
/var/tmp/paludis/build/dev-lang-llvm-12.0.0_rc1/work/llvm-project/llvm/unittests/IR/PassBuilderCallbacksTest.cpp:390:
tried expectation #1: EXPECT_CALL(*this,
runBeforeNonSkippedPass(Not(HasNameRegex("Mock")), HasName(IRName)))...
Expected arg #1: has name "foo"
Actual: 8-byte object <30-98 B3-CF 9C-55 00-00>, has name
'<UNKNOWN>'
Expected: to be called any number of times
Actual: never called - satisfied and active
/var/tmp/paludis/build/dev-lang-llvm-12.0.0_rc1/work/llvm-project/llvm/unittests/IR/PassBuilderCallbacksTest.cpp:390:
tried expectation #2: EXPECT_CALL(*this,
runBeforeNonSkippedPass(Not(HasNameRegex("Mock")), HasName(IRName)))...
Expected arg #1: has name "loop"
Actual: 8-byte object <30-98 B3-CF 9C-55 00-00>, has name
'<UNKNOWN>'
Expected: to be called any number of times
Actual: never called - satisfied and active
/var/tmp/paludis/build/dev-lang-llvm-12.0.0_rc1/work/llvm-project/llvm/unittests/IR/PassBuilderCallbacksTest.cpp:902:
tried expectation #3: EXPECT_CALL(CallbacksHandle,
runBeforeNonSkippedPass(HasNameRegex("MockPassHandle"), HasName("loop")))...
Expected arg #0: has name regex "MockPassHandle"
Actual: "PassManager<llvm::Function>", has name
'PassManager<llvm::Function>'
Expected arg #1: has name "loop"
Actual: 8-byte object <30-98 B3-CF 9C-55 00-00>, has name
'<UNKNOWN>'
Expected: to be called once
Actual: never called - unsatisfied and active
unknown file: Failure
Unexpected mock function call - returning directly.
Function call: runBeforeNonSkippedPass("FunctionToLoopPassAdaptor", 8-byte
object <30-98 B3-CF 9C-55 00-00>)
Google Mock tried the following 4 expectations, but none matched:
/var/tmp/paludis/build/dev-lang-llvm-12.0.0_rc1/work/llvm-project/llvm/unittests/IR/PassBuilderCallbacksTest.cpp:390:
tried expectation #0: EXPECT_CALL(*this,
runBeforeNonSkippedPass(Not(HasNameRegex("Mock")), HasName(IRName)))...
Expected arg #1: has name "<string>"
Actual: 8-byte object <80-B2 B3-CF 9C-55 00-00>, has name
'<UNKNOWN>'
Expected: to be called any number of times
Actual: called once - satisfied and active
/var/tmp/paludis/build/dev-lang-llvm-12.0.0_rc1/work/llvm-project/llvm/unittests/IR/PassBuilderCallbacksTest.cpp:390:
tried expectation #1: EXPECT_CALL(*this,
runBeforeNonSkippedPass(Not(HasNameRegex("Mock")), HasName(IRName)))...
Expected arg #1: has name "foo"
Actual: 8-byte object <80-B2 B3-CF 9C-55 00-00>, has name
'<UNKNOWN>'
Expected: to be called any number of times
Actual: never called - satisfied and active
/var/tmp/paludis/build/dev-lang-llvm-12.0.0_rc1/work/llvm-project/llvm/unittests/IR/PassBuilderCallbacksTest.cpp:390:
tried expectation #2: EXPECT_CALL(*this,
runBeforeNonSkippedPass(Not(HasNameRegex("Mock")), HasName(IRName)))...
Expected arg #1: has name "loop"
Actual: 8-byte object <80-B2 B3-CF 9C-55 00-00>, has name
'<UNKNOWN>'
Expected: to be called any number of times
Actual: never called - satisfied and active
/var/tmp/paludis/build/dev-lang-llvm-12.0.0_rc1/work/llvm-project/llvm/unittests/IR/PassBuilderCallbacksTest.cpp:902:
tried expectation #3: EXPECT_CALL(CallbacksHandle,
runBeforeNonSkippedPass(HasNameRegex("MockPassHandle"), HasName("loop")))...
Expected arg #0: has name regex "MockPassHandle"
Actual: "FunctionToLoopPassAdaptor", has name
'FunctionToLoopPassAdaptor'
Expected arg #1: has name "loop"
Actual: 8-byte object <80-B2 B3-CF 9C-55 00-00>, has name
'<UNKNOWN>'
Expected: to be called once
Actual: never called - unsatisfied and active
unknown file: Failure
[...]
The name is always "<UNKNOWN>" instead of the expected name.
Full log can be found here:
https://dev.exherbo.org/~marv/1611936999-install-dev-lang_llvm-12.0.0_rc1:12::arbor.out
Since all commits touching llvm/unittests/IR/PassBuilderCallbacksTest.cpp are
prefixed with "NewPM" I tried building with
-DENABLE_EXPERIMENTAL_NEW_PASS_MANAGER=ON as well, but with the same result.
Any help is much appreciated
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20210201/3735655e/attachment.html>
More information about the llvm-bugs
mailing list