OSDN Git Service

[GlobalISel] Only build expensive remarks if they're enabled. NFC.
authorAhmed Bougacha <ahmed.bougacha@gmail.com>
Mon, 18 Sep 2017 18:50:09 +0000 (18:50 +0000)
committerAhmed Bougacha <ahmed.bougacha@gmail.com>
Mon, 18 Sep 2017 18:50:09 +0000 (18:50 +0000)
commita9fc8d291ae6084567dd70ab79d9c29aa86cf924
tree4f1fc034cd7b320689269f2cd6f15659a9d89096
parentd800c2eba50b3d561035257aaffb5813b88d615d
[GlobalISel] Only build expensive remarks if they're enabled. NFC.

r313390 taught 'allowExtraAnalysis' to check whether remarks are
enabled at all.  Use that to only do the expensive instruction printing
if they are.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@313552 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/GlobalISel/IRTranslator.cpp
lib/CodeGen/GlobalISel/Utils.cpp