[MFProperties] Introduce a FailedISel property.
authorQuentin Colombet <qcolombet@apple.com>
Fri, 26 Aug 2016 23:49:01 +0000 (23:49 +0000)
committerQuentin Colombet <qcolombet@apple.com>
Fri, 26 Aug 2016 23:49:01 +0000 (23:49 +0000)
commite076d3094ce505e62daab92432f099d8ff4046ac
treed9c89b361aa2f09cb86c365d0c5d9ce6d1ca765b
parent950e4ce8fc9646e6198c0ec8802aa101b9a50d06
[MFProperties] Introduce a FailedISel property.

This is used to communicate that the instruction selection pipeline
failed at some point.
Another way to achieve that would be to have some kind of conditional
scheduling in the PassManager, such that we only schedule a pass based
on the success/failure of another one. The property approach has the
advantage of being lightweight and solve the problem at stake.

llvm-svn: 279885
llvm/include/llvm/CodeGen/MachineFunction.h
llvm/lib/CodeGen/MachineFunction.cpp