This is an archive of the discontinued LLVM Phabricator instance.

[Alignment][NFC] GlobalIsel Utils inferAlignFromPtrInfo
ClosedPublic

Authored by gchatelet on Mar 30 2020, 11:56 AM.

Details

Summary

This is patch is part of a series to introduce an Alignment type.
See this thread for context: http://lists.llvm.org/pipermail/llvm-dev/2019-July/133851.html
See this patch for the introduction of the type: https://reviews.llvm.org/D64790

Diff Detail

Event Timeline

gchatelet created this revision.Mar 30 2020, 11:56 AM
arsenm added a subscriber: arsenm.Mar 30 2020, 12:04 PM
arsenm added inline comments.
llvm/include/llvm/CodeGen/GlobalISel/Utils.h
187–188

There's no real need for this as there should only be one or two uses of this

gchatelet marked 2 inline comments as done.Mar 30 2020, 11:22 PM
gchatelet added inline comments.
llvm/include/llvm/CodeGen/GlobalISel/Utils.h
187–188

Indeed thx there are only 6 instances.

I'll remove the function in my next patch which fixes the call sites.
FYI I prefer to proceed this way because the follow up patch is ready and fixing the call sites in this patch would be cumbersome.

courbet accepted this revision.Mar 30 2020, 11:39 PM
This revision is now accepted and ready to land.Mar 30 2020, 11:39 PM
This revision was automatically updated to reflect the committed changes.
gchatelet marked an inline comment as done.