[PATCH] D143479: [Clang] Emit error when caller cannot meet target feature requirement from always-inlining callee

Qiu Chaofan via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Apr 5 19:23:00 PDT 2023


qiucf added a comment.

In D143479#4243143 <https://reviews.llvm.org/D143479#4243143>, @erichkeane wrote:

> Based on GCC's behavior: https://godbolt.org/z/fxWzPTT9P  I suspect our behavior is consistent/correct now, and the 'regressions' are to be expected, since GCC diagnoses the same things we do (just nicer, albeit, less informative).

This is expected. But we can do better like GCC to find 'real target requirements from called intrinsics' of a function, which may be a larger change though.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D143479/new/

https://reviews.llvm.org/D143479



More information about the cfe-commits mailing list