OSDN Git Service

[GlobalISel] Emit opt remarks on isel fallbacks.
authorAhmed Bougacha <ahmed.bougacha@gmail.com>
Thu, 23 Feb 2017 21:05:42 +0000 (21:05 +0000)
committerAhmed Bougacha <ahmed.bougacha@gmail.com>
Thu, 23 Feb 2017 21:05:42 +0000 (21:05 +0000)
commit65d76e1285ca989c1f864c1e53f8c8921ca54135
tree3e12aee9833c2f335087a913493f09690b1a2f3c
parent75fdc3a2aef5ebd188a5f43913fc44deddc84e05
[GlobalISel] Emit opt remarks on isel fallbacks.

Having more fine-grained information on the specific construct that
caused us to fallback is valuable for large-scale data collection.

We still have the fallback warning, that's also used for FastISel.
We still need to remove the fallback warning, and teach FastISel to also
emit remarks (it currently has a combination of the warning, stats, and
debug prints: the remarks could unify all three).

The abort-on-fallback path could also be better handled using remarks:
one could imagine a "-Rpass-error", analoguous to "-Werror", which would
promote missed/failed remarks to errors.  It's not clear whether that
would be useful for other remarks though, so we're not there yet.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@296013 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/CodeGen/GlobalISel/IRTranslator.h
include/llvm/CodeGen/GlobalISel/RegBankSelect.h
include/llvm/CodeGen/GlobalISel/Utils.h
lib/CodeGen/GlobalISel/IRTranslator.cpp
lib/CodeGen/GlobalISel/InstructionSelect.cpp
lib/CodeGen/GlobalISel/Legalizer.cpp
lib/CodeGen/GlobalISel/RegBankSelect.cpp
lib/CodeGen/GlobalISel/Utils.cpp
test/CodeGen/AArch64/GlobalISel/arm64-fallback.ll