[PATCH] D73131: [IR] Value::getPointerAlignment(): handle pointer constants

Johannes Doerfert via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Feb 6 07:50:07 PST 2020


jdoerfert added a comment.

In D73131#1861624 <https://reviews.llvm.org/D73131#1861624>, @mlychkov wrote:

> In D73131#1861595 <https://reviews.llvm.org/D73131#1861595>, @mlychkov wrote:
>
> > ...
> >  Is this alignment accounting intended to be used for getelementptr instructions too?
> >  If yes then may we cleanup extra user after we get TrailingZeros value?
>
>
> Or is there a way to perform this computation without const_cast?


The problem is `ConstantExpr::getPtrToInt`. Do we striclty need that?


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D73131





More information about the llvm-commits mailing list