[PATCH] D123693: Transform illegal intrinsics to V_ILLEGAL
Leon Clark via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Jun 14 01:31:44 PDT 2022
Leonc added a comment.
In D123693#3580902 <https://reviews.llvm.org/D123693#3580902>, @foad wrote:
>> The issue is our libraries contain code for all targets. We rely on dead code elimination to remove illegal intrinsics, but that doesn't happen on -O0.
>
> Why can't you put the code for different subtargets in different functions, each with an appropriate `"target-cpu"=` attribute?
That's what I would do. I think there's some resistance to it though, and it would probably require a lot more work.
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