[flang-commits] [clang] [flang] [lld] [llvm] [polly] [Option] Make Passes, Scalar, Instrumentation, and CGData options per-context (PR #232599)

Alexis Engelke via flang-commits flang-commits at lists.llvm.org
Fri Oct 16 03:15:14 PDT 2026


================
@@ -269,13 +269,18 @@ static unsigned getHashValueImpl(SimpleValue Val) {
                       hash_combine_range(Inst->operand_values()));
 }
 
+#ifndef NDEBUG
+// -earlycse-debug-hash of the function being processed, bound once per run.
+static LLVM_THREAD_LOCAL bool DebugHash;
----------------
aengelke wrote:

-1 to thread_local. We can get the options via the instruction's context.

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


More information about the flang-commits mailing list