[llvm] [DirectX] Add Range Overlap validation (PR #152229)

Nikita Popov via llvm-commits llvm-commits at lists.llvm.org
Fri Aug 15 01:28:26 PDT 2025


================
@@ -17,6 +17,8 @@
 #ifndef LLVM_SUPPORT_DXILABI_H
 #define LLVM_SUPPORT_DXILABI_H
 
+#include "llvm/ADT/StringRef.h"
+#include "llvm/Support/ScopedPrinter.h"
----------------
nikic wrote:

This PR makes the clang build 2% slower, probably by adding these includes. ScopedPrinter.h is very heavy, and DXILABI.h is included everywhere in clang. Please refactor things to remove these includes.

See https://llvm-compile-time-tracker.com/compare_clang.php?from=ca9ddd54b77020322a94a8032276b46cc1046522&to=d56fa965243bcdc115b8f262ce79cf2547500c6d&stat=instructions%3Au&sortBy=interestingness.

https://github.com/llvm/llvm-project/pull/152229


More information about the llvm-commits mailing list