Hi Chris,

> > try this example.  Argpromotion deletes the zeroext attribute on the  
> > call.
> 
> Right, it deletes it because the attr is on the call not the  
> function.  I can make this work, but shouldn't the attr also be on the  
> function?

the attributes on the call determine (for example) how the call is setup
by the code generators.  Logically speaking there should be no need to
examine the called function, even if it is available.  So I think it is
better to not rely on the codegenerators kindly examining the function
attributes.  As such it is better not to drop call attributes in this
way.

Ciao,

Duncan.
_______________________________________________
llvm-commits mailing list
llvm-commits@cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits

Reply via email to