[PATCH] D109888: Bitcast wrapped in a call obscures function attributes, pessimizing MemorySSA
Antonio Frighetto via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Sep 16 12:16:37 PDT 2021
antoniofrighetto added a comment.
In D109888#3004544 <https://reviews.llvm.org/D109888#3004544>, @nikic wrote:
> I'm okay with this for the case of function attributes in particular, because those don't really depend on ABI considerations. I will say though that you're brushing really close to UB here, and I may push back against extending other places in this direction. Like, say you have a `void(i128)` and call it as `void(i64, i64)` knowing that under the particular ABI used those two i64s will assemble into an i128 -- is that a legal call? In what manner would a function param attribute correlate with call arguments there?
Haven't really thought about it, yet, like @jdoerfert noted, there should exist no ambiguity as far as the function is concerned.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D109888/new/
https://reviews.llvm.org/D109888
More information about the llvm-commits
mailing list