Changeset View
Changeset View
Standalone View
Standalone View
lib/CodeGen/IslNodeBuilder.cpp
Context not available. | |||||
/// Extract the values and SCEVs needed to generate code for a block. | /// Extract the values and SCEVs needed to generate code for a block. | ||||
static int findReferencesInBlock(struct SubtreeReferences &References, | static int findReferencesInBlock(struct SubtreeReferences &References, | ||||
const ScopStmt *Stmt, const BasicBlock *BB) { | const ScopStmt *Stmt, const BasicBlock *BB) { | ||||
for (const Instruction &Inst : *BB) | for (const Instruction &Inst : *BB) { | ||||
if (polly::isIgnoredIntrinsic(&Inst)) { | |||||
continue; | |||||
} | |||||
Meinersbur: We usually do not have braces around a single statement in an if-condition. | |||||
grosserUnsubmitted Not Done ReplyInline ActionsThis has been fixed. Feel invited to mark it as "done". grosser: This has been fixed. Feel invited to mark it as "done". | |||||
for (Value *SrcVal : Inst.operands()) { | for (Value *SrcVal : Inst.operands()) { | ||||
auto *Scope = References.LI.getLoopFor(BB); | auto *Scope = References.LI.getLoopFor(BB); | ||||
if (canSynthesize(SrcVal, References.S, &References.SE, Scope)) { | if (canSynthesize(SrcVal, References.S, &References.SE, Scope)) { | ||||
Context not available. | |||||
} else if (Value *NewVal = References.GlobalMap.lookup(SrcVal)) | } else if (Value *NewVal = References.GlobalMap.lookup(SrcVal)) | ||||
References.Values.insert(NewVal); | References.Values.insert(NewVal); | ||||
} | } | ||||
} | |||||
return 0; | return 0; | ||||
} | } | ||||
Context not available. |
We usually do not have braces around a single statement in an if-condition.