[LLVMdev] Constant propagation behavior

aurelien.wailly at orange.com aurelien.wailly at orange.com
Wed Mar 26 08:32:33 PDT 2014


Hello,

I am wondering why the constant propagation pass for http://paste.ofcode.org/6upqApjEAy5WYjnFgjQxvj does not propagate the 4660 integer (line 57 after optim).

If I understand correctly, the lines:

store i64 4660, i64* %I
[...]
%Ldq = load i64* %I
[...]
store i64 %Ldq, i64* @rbp

May be transformed to :

store i64 4660, i64* @rbp

But I am unable to find the correct passes to apply. I found some related post on the mailing list (http://lists.cs.uiuc.edu/pipermail/llvmdev/2005-January/003232.html) but both gcse and load-vn have disappeared into the latest LLVM. I tried to analyze the alias analysis with -count-aa, but I have no idea how to use it to debug my problem.

_________________________________________________________________________________________________________________________

Ce message et ses pieces jointes peuvent contenir des informations confidentielles ou privilegiees et ne doivent donc
pas etre diffuses, exploites ou copies sans autorisation. Si vous avez recu ce message par erreur, veuillez le signaler
a l'expediteur et le detruire ainsi que les pieces jointes. Les messages electroniques etant susceptibles d'alteration,
Orange decline toute responsabilite si ce message a ete altere, deforme ou falsifie. Merci.

This message and its attachments may contain confidential or privileged information that may be protected by law;
they should not be distributed, used or copied without authorisation.
If you have received this email in error, please notify the sender and delete this message and its attachments.
As emails may be altered, Orange is not liable for messages that have been modified, changed or falsified.
Thank you.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20140326/83a74f47/attachment.html>


More information about the llvm-dev mailing list