[PATCH] D61089: [Reassociation] Place moved instructions after landing pads
Eli Friedman via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed May 1 11:44:01 PDT 2019
efriedma added a comment.
To produce a catchswitch with a PHI, you can run "clang --target=aarch64-pc-windows-msvc -S -emit-llvm -O2" over something like the following:
void g();
void g2();
void use(int, int);
void f(bool b) {
int z;
try {
if (b) {
z = 3;
g();
} else {
z = 5;
g2();
}
} catch (...) {
return use(z,-z);
}
}
You should be able to modify that to produce an appropriate testcase.
Repository:
rL LLVM
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D61089/new/
https://reviews.llvm.org/D61089
More information about the llvm-commits
mailing list