summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xllvm/utils/opt-viewer/opt-viewer.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/llvm/utils/opt-viewer/opt-viewer.py b/llvm/utils/opt-viewer/opt-viewer.py
index 597c7031069..8ac491eb6c8 100755
--- a/llvm/utils/opt-viewer/opt-viewer.py
+++ b/llvm/utils/opt-viewer/opt-viewer.py
@@ -5,15 +5,14 @@ from __future__ import print_function
desc = '''Generate HTML output to visualize optimization records from the YAML files
generated with -fsave-optimization-record and -fdiagnostics-show-hotness.
-The tools requires PyYAML and Pygments Python packages.
-
-For faster parsing, you may want to use libYAML with PyYAML.'''
+The tools requires PyYAML and Pygments Python packages.'''
import yaml
# Try to use the C parser.
try:
from yaml import CLoader as Loader
except ImportError:
+ print("For faster parsing, you may want to install libYAML for PyYAML")
from yaml import Loader
import functools
OpenPOWER on IntegriCloud