Don't compute optimized PointerKind for unoptimized builds

This saves us both the Freeze/Unpin queries, and avoids placing
noalias attributes, which have a compile-time impact on LLVM
even in optnone builds (due to always_inline functions).
This commit is contained in:
Nikita Popov 2021-03-19 22:49:51 +01:00
parent 39ed64399e
commit 6ac229ca21
4 changed files with 27 additions and 20 deletions

View file

@ -1,4 +1,4 @@
// compile-flags: -C no-prepopulate-passes
// compile-flags: -O -C no-prepopulate-passes
// ignore-tidy-linelength
// min-system-llvm-version: 12.0