This is an archive of the discontinued LLVM Phabricator instance.

[Analysis] Refine matching and merging of TBAA tags
ClosedPublic

Authored by kosarev on Oct 31 2017, 10:56 AM.

Details

Summary

This patch combines the code that matches and merges TBAA access tags. The aim is to simplify future changes and making sure that these operations produce consistent results.

Diff Detail

Repository
rL LLVM

Event Timeline

kosarev created this revision.Oct 31 2017, 10:56 AM
hfinkel edited edge metadata.Nov 1 2017, 8:17 PM

This looks pretty good.

Please follow LLVM's coding conventions, especially for new functions, function names should start with a lower-case letter. findAccessType, not FindAccessType (see http://llvm.org/docs/CodingStandards.html#name-types-functions-variables-and-enumerators-properly).

lib/Analysis/TypeBasedAliasAnalysis.cpp
565 ↗(On Diff #121014)

I don't like the terminology "type group". It's not finding a type group (we have no such things), it's finding a type. Can't we just call this: getLeastCommonType?

kosarev updated this revision to Diff 121263.Nov 2 2017, 3:38 AM
  • Fixed names of new functions.
  • The "type group" term replaced with just "type".
hfinkel accepted this revision.Nov 2 2017, 11:20 AM

LGTM

This revision is now accepted and ready to land.Nov 2 2017, 11:20 AM
This revision was automatically updated to reflect the committed changes.