message: Adjust x86 pipeline to respond to OMP_THREAD_NUM
diff: @@ -173,16 +173,7 @@ struct Options : public PassPipelineOptions<Options> {
  llvm::cl::desc("Number of threads")};
  unsigned getNumThreads() const {
  - if (numThreads)
  - return numThreads.getValue();
  -
  - unsigned numProcs = omp_get_num_procs();
  - unsigned physCores = getPhysicalCoreNumber();
  - IVLOG(3, "numProcs: " << numProcs);
  - IVLOG(3, "physCores: " << physCores);
  - if (physCores)
  - numProcs = std::min(physCores, numProcs);
  - return numProcs;
  + return numThreads ? numThreads.getValue() : omp_get_max_threads();
  }
  };
  