- Having such a store prevents us from running the kernel since the final value of
the scalar on running the kernel would be undefined.
- Useful to have a flag that fails if this condition occurs.
Differential D35992
[Polly] [PPCGCodeGeneration] [NFC] [WIP] Add option to fail if a store to a scalar occursin a kernel. AcceptedPublic Authored by bollu on Jul 28 2017, 5:39 AM.
Details Summary
the scalar on running the kernel would be undefined.
Diff Detail
Event Timelinebollu retitled this revision from [Polly] [PPCGCodeGeneration] [NFC] Add option to fail if a store to a scalar occurs
in a kernel. to [Polly] [PPCGCodeGeneration] [NFC] [WIP] Add option to fail if a store to a scalar occursin a kernel..Jul 28 2017, 5:42 AM
This revision is now accepted and ready to land.Aug 22 2017, 6:42 AM
Revision Contents
Diff 108637 lib/CodeGen/PPCGCodeGeneration.cpp
|
Would having if (FailOnStoredScalar) behind this if be more appropriate ? The stored scalar is an issue only if this condition evaluates to true, right ?