[Attributor] Propagate known align from arguments to call sites arguments
authorJohannes Doerfert <johannes@jdoerfert.de>
Tue, 31 Dec 2019 07:27:50 +0000 (01:27 -0600)
committerJohannes Doerfert <johannes@jdoerfert.de>
Tue, 31 Dec 2019 07:33:22 +0000 (01:33 -0600)
commitdada8132af65c1fa74070839c260cd78d97a0903
treec61923b8a757ab4f7c61fcf85e6cc973d6d29259
parentb1b441d22de88ec9816403ab6d0541ca91faba16
[Attributor] Propagate known align from arguments to call sites arguments

Since the information is known we can simply use it at the call site.
This is especially useful for callbacks but also helps regular calls.

The test changes are mechanical.
llvm/lib/Transforms/IPO/Attributor.cpp
llvm/test/Transforms/Attributor/ArgumentPromotion/dbg.ll
llvm/test/Transforms/Attributor/ArgumentPromotion/pr32917.ll
llvm/test/Transforms/Attributor/callbacks.ll
llvm/test/Transforms/Attributor/nocapture-2.ll