[Attributor] Use smarter way to determine alignment of GEPs
authorJohannes Doerfert <johannes@jdoerfert.de>
Sun, 13 Sep 2020 04:41:48 +0000 (23:41 -0500)
committerJohannes Doerfert <johannes@jdoerfert.de>
Wed, 7 Oct 2020 00:31:08 +0000 (19:31 -0500)
commit7993d61177c8c6e9aa238e57a684c6cd3db3b571
treed6c0d6d0d8a09816069c04342bde9138eafd0b7a
parentc4cfe7a43512c8fadb2aa207f6d914858e2cc50e
[Attributor] Use smarter way to determine alignment of GEPs

Use same logic existing in other places to deal with base case GEPs.

Add the original Attributor talk example.
llvm/lib/Transforms/IPO/AttributorAttributes.cpp
llvm/test/Transforms/Attributor/ArgumentPromotion/aggregate-promote.ll
llvm/test/Transforms/Attributor/align.ll