Joan Lluch via llvm-dev
2019-Jun-29 20:00 UTC
[llvm-dev] Tablegen ridiculously slow when compiling for Debug
Hi Florian, Ok, I ran this: cmake -S LLVM -DCMAKE_INSTALL_PREFIX=INSTALL -DLLVM_OPTIMIZED_TABLEGEN=On -G Xcode Compiled it again from clean, and the situation is worse than before. Incremental builds take an incredible amount of time stuck in running Tablegen scripts for all targets. Now this happens both in Release and Debug configurations. Just before this, at least Release compiled fine, but that’s no longer the case. Any other suggestions? What could actually cause this? Thanks John> On 29 Jun 2019, at 19:37, Florian Hahn <florian_hahn at apple.com> wrote: > > Hi, > >> On Jun 29, 2019, at 18:26, Joan Lluch via llvm-dev <llvm-dev at lists.llvm.org> wrote: >> >> Hi all, >> >> On LLVM version 7.0.1, incremental builds are very fast for both Release and Debug. I’m compiling with Xcode >> >> I recently downloaded LLVM 9.0 from the LLVM-mirror Github repository and found that Incremental "Debug” builds take a ridiculously long time due to Tablegen taking ages (literally more than 10 minutes) to generate files. This makes it totally unusable for debug purposes. However, incremental ‘Release’ builds only take a few seconds. >> >> Why is that?. Any suggestions?. > > > > You could give setting LLVM_OPTIMIZED_TABLEGEN a try (https://llvm.org/docs/CMake.html). > > Cheers, > Florian-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20190629/a5299e5b/attachment.html>
Praveen Velliengiri via llvm-dev
2019-Jun-30 05:32 UTC
[llvm-dev] Tablegen ridiculously slow when compiling for Debug
Maybe try building llvm as a shared objects.. On Jun 30, 2019 1:30 AM, "Joan Lluch via llvm-dev" <llvm-dev at lists.llvm.org> wrote:> Hi Florian, > > Ok, I ran this: > > cmake -S LLVM -DCMAKE_INSTALL_PREFIX=INSTALL -DLLVM_OPTIMIZED_TABLEGEN=On > -G Xcode > > Compiled it again from clean, and the situation is worse than before. > Incremental builds take an incredible amount of time stuck in running > Tablegen scripts for all targets. Now this happens both in Release and > Debug configurations. Just before this, at least Release compiled fine, but > that’s no longer the case. > > Any other suggestions? What could actually cause this? > > Thanks > John > > > > On 29 Jun 2019, at 19:37, Florian Hahn <florian_hahn at apple.com> wrote: > > Hi, > > On Jun 29, 2019, at 18:26, Joan Lluch via llvm-dev < > llvm-dev at lists.llvm.org> wrote: > > Hi all, > > On LLVM version 7.0.1, incremental builds are very fast for both Release > and Debug. I’m compiling with Xcode > > I recently downloaded LLVM 9.0 from the LLVM-mirror Github repository and > found that Incremental "Debug” builds take a ridiculously long time due to > Tablegen taking ages (literally more than 10 minutes) to generate files. > This makes it totally unusable for debug purposes. However, incremental > ‘Release’ builds only take a few seconds. > > Why is that?. Any suggestions?. > > > > > You could give setting LLVM_OPTIMIZED_TABLEGEN a try ( > https://llvm.org/docs/CMake.html). > > Cheers, > Florian > > > > _______________________________________________ > LLVM Developers mailing list > llvm-dev at lists.llvm.org > https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev > >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20190630/542cb595/attachment.html>
Joan Lluch via llvm-dev
2019-Jun-30 09:12 UTC
[llvm-dev] Tablegen ridiculously slow when compiling for Debug
Hi Praveen, Please, can you elaborate on this?. What do do mean by “building as shared objects”. Thanks, John> On 30 Jun 2019, at 07:32, Praveen Velliengiri <praveenvelliengiri at gmail.com> wrote: > > Maybe try building llvm as a shared objects.. > > On Jun 30, 2019 1:30 AM, "Joan Lluch via llvm-dev" <llvm-dev at lists.llvm.org <mailto:llvm-dev at lists.llvm.org>> wrote: > Hi Florian, > > Ok, I ran this: > > cmake -S LLVM -DCMAKE_INSTALL_PREFIX=INSTALL -DLLVM_OPTIMIZED_TABLEGEN=On -G Xcode > > Compiled it again from clean, and the situation is worse than before. Incremental builds take an incredible amount of time stuck in running Tablegen scripts for all targets. Now this happens both in Release and Debug configurations. Just before this, at least Release compiled fine, but that’s no longer the case. > > Any other suggestions? What could actually cause this? > > Thanks > John > > > >> On 29 Jun 2019, at 19:37, Florian Hahn <florian_hahn at apple.com <mailto:florian_hahn at apple.com>> wrote: >> >> Hi, >> >>> On Jun 29, 2019, at 18:26, Joan Lluch via llvm-dev <llvm-dev at lists.llvm.org <mailto:llvm-dev at lists.llvm.org>> wrote: >>> >>> Hi all, >>> >>> On LLVM version 7.0.1, incremental builds are very fast for both Release and Debug. I’m compiling with Xcode >>> >>> I recently downloaded LLVM 9.0 from the LLVM-mirror Github repository and found that Incremental "Debug” builds take a ridiculously long time due to Tablegen taking ages (literally more than 10 minutes) to generate files. This makes it totally unusable for debug purposes. However, incremental ‘Release’ builds only take a few seconds. >>> >>> Why is that?. Any suggestions?. >> >> >> >> You could give setting LLVM_OPTIMIZED_TABLEGEN a try (https://llvm.org/docs/CMake.html <https://llvm.org/docs/CMake.html>). >> >> Cheers, >> Florian > > > _______________________________________________ > LLVM Developers mailing list > llvm-dev at lists.llvm.org <mailto:llvm-dev at lists.llvm.org> > https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev <https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev> >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20190630/7a6a02c8/attachment.html>
Possibly Parallel Threads
- Tablegen ridiculously slow when compiling for Debug
- Tablegen ridiculously slow when compiling for Debug
- Tablegen ridiculously slow when compiling for Debug
- Tablegen ridiculously slow when compiling for Debug
- Tablegen ridiculously slow when compiling for Debug