forked from OSchip/llvm-project
Do not add but record signed-unsigned assumptions
llvm-svn: 267528
This commit is contained in:
parent
0600e8d759
commit
625bb1fc10
|
@ -340,7 +340,7 @@ SCEVAffinator::visitZeroExtendExpr(const SCEVZeroExtendExpr *Expr) {
|
|||
NegDom = ExprDomain ? isl_set_intersect(NegDom, ExprDomain) : NegDom;
|
||||
auto DL = BB ? BB->getTerminator()->getDebugLoc() : DebugLoc();
|
||||
OpPWAC.second = isl_set_union(OpPWAC.second, isl_set_copy(NegDom));
|
||||
S->addAssumption(UNSIGNED, isl_set_params(NegDom), DL, AS_RESTRICTION);
|
||||
S->recordAssumption(UNSIGNED, NegDom, DL, AS_RESTRICTION, BB);
|
||||
return OpPWAC;
|
||||
}
|
||||
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
; CHECK: Assumed Context:
|
||||
; CHECK-NEXT: [o, m, n] -> { : }
|
||||
; CHECK-NEXT: Invalid Context:
|
||||
; CHECK-NEXT: [o, m, n] -> { : o < 0 or m < 0 or (o >= 0 and m >= 0 and n <= 0) or (m = 0 and o >= 0 and n > 0) or (o = 0 and m > 0 and n > 0) }
|
||||
; CHECK-NEXT: [o, m, n] -> { : o < 0 or (o >= 0 and m < 0) or (o >= 0 and m >= 0 and n <= 0) or (m = 0 and o >= 0 and n > 0) or (o = 0 and m > 0 and n > 0) }
|
||||
|
||||
;
|
||||
; CHECK: p0: %o
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
; RUN: opt %loadPolly -pass-remarks-analysis="polly-scops" -polly-scops -disable-output < %s 2>&1 | FileCheck %s
|
||||
;
|
||||
; CHECK: remark: <unknown>:0:0: SCoP begins here.
|
||||
; CHECK-NEXT: remark: <unknown>:0:0: Signed-unsigned restriction: [i, N, M] -> { : N >= i and M < 0 }
|
||||
; CHECK-NEXT: remark: <unknown>:0:0: Inbounds assumption: [i, N, M] -> { : N <= i or (N > i and M <= 100) }
|
||||
; CHECK-NEXT: remark: <unknown>:0:0: SCoP ends here.
|
||||
;
|
||||
|
|
Loading…
Reference in New Issue