[PATCH] D123693: Transform illegal intrinsics to V_ILLEGAL
Brendon Cahoon via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Jun 14 06:52:44 PDT 2022
bcahoon added a comment.
The rationale is for library code that looks like:
void example(float *p, float v) {
if (_ISA_verison == 9008 || __ISA_verison == 9010)
global_atomic_fadd(p, v);
else
generic_atomic_fadd(p, v);
}
At optimization levels > 0, the dead code is eliminated, but at optimization level 0, the dead code remain and the compiler attempts to generate an instruction. That instruction would never be executed due to the condition, but it still needs to be generated. In these cases, we don't have multilibs (target specific libraries).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D123693/new/
https://reviews.llvm.org/D123693
More information about the llvm-commits
mailing list