Polly tests broken

The polly bot is down for a while and it seems all polly tests are broken (tested on Windows with both MSVC & Clang 9), looks like LLVMPolly.dll doesn’t build anymore?

Anybody else seeing this?

Using the following cmake command:

cmake -GNinja %ROOT%/llvm -DCMAKE_BUILD_TYPE=Release -DLLVM_OPTIMIZED_TABLEGEN=true -DLLVM_ENABLE_ASSERTIONS=ON -DLLVM_ENABLE_LIBXML2=OFF -DCMAKE_C_COMPILER="%VS2017%/bin/HostX64/x64/cl.EXE" -DCMAKE_CXX_COMPILER="%VS2017%/bin/HostX64/x64/cl.EXE" -DCMAKE_LINKER="%VS2017%/bin/HostX64/x64/link.EXE" -DLLVM_USE_CRT_RELEASE=MT -DLLVM_ENABLE_PROJECTS=“llvm;clang;lld;clang-tools-extra;compiler-rt;mlir;polly”

The output I’m seeing with ninja check-all:

FAIL: Polly :: Simplify/scalability1.ll (56278 of 59460)

******************** TEST ‘Polly :: Simplify/scalability1.ll’ FAILED ********************

Script:

May be related to
https://reviews.llvm.org/rG24ab9b537e61b3fe5e6a1019492ff6530d82a3ee
(commited on 2020-01-02)

Someone with a Windows machine should take a look.

Your configuration tries to use Polly as as a loadable module. This is
not supported on Windows and so Polly never worked in this
configuration. See [1].

Before the change LLVM_POLLY_LINK_INTO_TOOLS was ON by default before
D61446, but is OFF now. This explains why it is failing for you now.
Passing -DLLVM_POLLY_LINK_INTO_TOOLS=ON to cmake should make it work
again.

Generally, I think LLVM_<PLUGIN>_LINK_INTO_TOOLS=OFF is a sensible
default to avoid unintentional binary growths for plugins that are not
used, at the cost of some inconvenience for those using the plugin.

I intend to make the Polly buildbot work again, but unfortunately do
not have enough time this month.

[1] https://groups.google.com/d/msg/polly-dev/vxumPMhrSEs/E50kboqlAQAJ

Michael