[PATCH] D85174: BPF: simplify IR generation for __builtin_btf_type_id()

Yonghong Song via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Aug 3 22:02:20 PDT 2020


yonghong-song added a comment.

In D85174#2192269 <https://reviews.llvm.org/D85174#2192269>, @ast wrote:

> Is it a cleanup or is it a fix for some bug? If latter there should be a new test for it?

This is also to fix the CSE issue where two builtins are CSE'ed if one has type "struct t" and the other is "__t" where "__t" is defined as "typedef struct t __t". I will add a clang test to capture the generated IR.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D85174



More information about the cfe-commits mailing list