[PassBuilder] Detect loop-mssa for licm with parameters (PR60149)
authorNikita Popov <npopov@redhat.com>
Mon, 23 Jan 2023 11:11:33 +0000 (12:11 +0100)
committerNikita Popov <npopov@redhat.com>
Mon, 23 Jan 2023 11:11:33 +0000 (12:11 +0100)
commitedc1bcfc24e2a676e013775eb71a951e49b9d4f1
tree0b7a054da5a425e50afc258f977ae75bbc6108ec
parentea6e8d4f5913e89a1a6951f017b6509ed32c6be9
[PassBuilder] Detect loop-mssa for licm with parameters (PR60149)

When auto-detecting loop-mssa for licm/lnicm, also handle the case
where there are pass parameters.

Fixes https://github.com/llvm/llvm-project/issues/60149.
llvm/lib/Passes/PassBuilder.cpp
llvm/test/Transforms/LICM/allow-speculation-option.ll