kubamracek wrote:

> Assuming that the behavioral divergence with PCH use is, in fact, intentional.

The pattern in the tests is that the test source (in a .cpp file) is compiled 
once normally, where the hints start to apply, and then once more where the 
.cpp file is compiled as input to PCH generation, and then the test imports the 
PCH and generates IR that way. We don't apply the hints to functions from a 
PCH. I think that's correct, because code in a PCH is intended for reuse across 
TUs (at least in real-world PCH usage, not so much in these tests, of course).

https://github.com/llvm/llvm-project/pull/238529
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to