They are not used and consequently do not even need to be computed. This reduces
the overall compile time for our kernel from 1m33s to 17s.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
Comment Actions
LGTM
lib/CodeGen/PPCGCodeGeneration.cpp | ||
---|---|---|
3143 ↗ | (On Diff #111650) | Consider either: Schedule = map_to_device(PPCGGen, Schedule, /*to_from_device=*/ !PollyManagedMemory); or const bool CreateTransferToFromDevice = !PollyManagedMemory; Schedule = map_to_device(PPCGGen, Schedule, CreateTransferToFromDevice); |
lib/External/ppcg/gpu.c | ||
5280 ↗ | (On Diff #111650) | Could you please document why this is necessary in the comment above? |
5683 ↗ | (On Diff #111650) | Personal opinion: I don't like magic constants. Consider: const int create_transfer_to_from_device = 1; schedule = map_to_device(gen, schedule, create_transfer_to_from_device); or something along those lines. |