Displaying 4 results from an estimated 4 matches for "pred_equ".
Did you mean:
pred_end
2013 Jan 15
2
[LLVMdev] [cfe-dev] no-alias generated as result of restrict function arguments
...SPtr)) {
+ lhs_noaliasarg = A->hasNoAliasAttr();
+ lhs_byvalarg = A->hasByValAttr();
}
+ if (const Argument *A = dyn_cast<Argument>(RHSPtr)) {
+ rhs_noaliasarg = A->hasNoAliasAttr();
+ rhs_byvalarg = A->hasByValAttr();
+ }
+
+ bool pred_equal = (Predicate == ICmpInst::ICMP_EQ);
+ if ((lhs_alloca && rhs_global) || (rhs_alloca && lhs_global))
+ return ConstantInt::get(ITy, !pred_equal);
+ // This must not be used during inline cost estimation.
+ if (lhs_alloca && (rhs_noaliasarg || rhs_byval...
2013 Jan 16
0
[LLVMdev] [cfe-dev] no-alias generated as result of restrict function arguments
...<AllocaInst>(RHSPtr)) {
- if (LHSArg->getParent() == RHSInst->getParent()->getParent()) {
- if (Pred == CmpInst::ICMP_EQ)
- return ConstantInt::get(ITy, false);
- else if (Pred == CmpInst::ICMP_NE)
- return ConstantInt::get(ITy, true);
+ bool pred_equal = (Predicate == ICmpInst::ICMP_EQ);
+ if ((lhs_alloca && rhs_global) || (rhs_alloca && lhs_global))
+ return ConstantInt::get(ITy, !pred_equal);
+ // This must not be used during inline cost estimation.
+ if (lhs_alloca && (rhs_noaliasarg || rhs_byval...
2012 Dec 12
0
[LLVMdev] [cfe-dev] no-alias generated as result of restrict function arguments
On Wed, Dec 12, 2012 at 1:26 PM, Joerg Sonnenberger
<joerg at britannica.bec.de> wrote:
> On Wed, Dec 12, 2012 at 11:01:01AM -0800, Dan Gohman wrote:
>> > Is that
>> > assumption violated if I explicitly cast away const and pass the result
>> > to a function with NoAlias argument?
>>
>> Not immediately, no. It means that you can't access the
2012 Dec 12
3
[LLVMdev] [cfe-dev] no-alias generated as result of restrict function arguments
On Wed, Dec 12, 2012 at 11:01:01AM -0800, Dan Gohman wrote:
> > Is that
> > assumption violated if I explicitly cast away const and pass the result
> > to a function with NoAlias argument?
>
> Not immediately, no. It means that you can't access the constant
> pointer's pointee directly within the noalias argument's scope. Access
> to that object must go