forked from OSchip/llvm-project
[FIX] Activated a pointer test and removed obsolete comment
llvm-svn: 227524
This commit is contained in:
parent
f170d7edb5
commit
3a3799e43a
|
|
@ -329,13 +329,6 @@ public:
|
|||
ValidatorResult visitUnknown(const SCEVUnknown *Expr) {
|
||||
Value *V = Expr->getValue();
|
||||
|
||||
// We currently only support integer types. It may be useful to support
|
||||
// pointer types, e.g. to support code like:
|
||||
//
|
||||
// if (A)
|
||||
// A[i] = 1;
|
||||
//
|
||||
// See test/CodeGen/20120316-InvalidCast.ll
|
||||
if (!(Expr->getType()->isIntegerTy() || Expr->getType()->isPointerTy())) {
|
||||
DEBUG(dbgs() << "INVALID: UnknownExpr is not an integer or pointer type");
|
||||
return ValidatorResult(SCEVType::INVALID);
|
||||
|
|
|
|||
|
|
@ -1,7 +1,8 @@
|
|||
; RUN: opt %loadPolly -polly-codegen-isl < %s
|
||||
; RUN: opt %loadPolly -S -polly-detect-scops-in-functions-without-loops -polly-detect-scops-in-regions-without-loops -polly-codegen-isl < %s | FileCheck %s
|
||||
|
||||
; CHECK: polly.start
|
||||
|
||||
target datalayout = "e-p:32:32:32-i64:64:64-i32:32:32-i16:16:16-i1:32:32-f64:64:64-f32:32:32-a0:0-n32"
|
||||
target triple = "hexagon-unknown-linux-gnu"
|
||||
|
||||
define void @fixup_gotos(i32* %A, i32* %data) nounwind {
|
||||
entry:
|
||||
|
|
|
|||
Loading…
Reference in New Issue