message: Add PLAIDML_ENABLE_TPP env var
diff: @@ -264,9 +264,8 @@ void pipelineBuilder(OpPassManager &pm) {
  // Use OMP thread count
  unsigned maxThreads = omp_get_max_threads();
  unsigned physCores = getPhysicalCoreNumber();
  - if (0 != physCores) {
  + if (physCores)
  maxThreads = std::min(physCores, maxThreads);
  - }
  pm.addNestedPass<FuncOp>(pxa::createCPUThreadPass(maxThreads));
  @@ -288,6 +287,7 @@ void pipelineBuilder(OpPassManager &pm) {
  pm.addPass(createCSEPass());
  pm.addPass(createPRNGLinkingPass());
  + if (pmlc::util::getEnvVar("PLAIDML_ENABLE_TPP") == "1")
  pm.addNestedPass<FuncOp>(createTppPatternsPass());
  pm.addPass(createLowerPXAToAffinePass());
  @@ -304,9 +304,8 @@ void pipelineBuilder(OpPassManager &pm) {
  pm.addPass(createCSEPass());
  pm.addPass(createLowerToCFGPass());
  - if (pmlc::util::getEnvVar("PLAIDML_BOUNDS_CHECK") == "1") {
  + if (pmlc::util::getEnvVar("PLAIDML_BOUNDS_CHECK") == "1")
  pm.addNestedPass<FuncOp>(stdx::createBoundsCheckPass());
  - }
  pm.addPass(createLowerToLLVMPass());
  pm.addPass(createTraceLinkingPass());
  