[PATCH] D123693: Transform illegal intrinsics to V_ILLEGAL

Jay Foad via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Jun 14 01:28:19 PDT 2022


foad added a comment.

> 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?


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