diff options
author | Quentin Colombet <qcolombet@apple.com> | 2016-08-26 23:49:01 +0000 |
---|---|---|
committer | Quentin Colombet <qcolombet@apple.com> | 2016-08-26 23:49:01 +0000 |
commit | e076d3094ce505e62daab92432f099d8ff4046ac (patch) | |
tree | d9c89b361aa2f09cb86c365d0c5d9ce6d1ca765b /llvm/lib/CodeGen/MachineFunction.cpp | |
parent | 950e4ce8fc9646e6198c0ec8802aa101b9a50d06 (diff) | |
download | llvm-e076d3094ce505e62daab92432f099d8ff4046ac.zip llvm-e076d3094ce505e62daab92432f099d8ff4046ac.tar.gz llvm-e076d3094ce505e62daab92432f099d8ff4046ac.tar.bz2 |
[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
Diffstat (limited to 'llvm/lib/CodeGen/MachineFunction.cpp')
-rw-r--r-- | llvm/lib/CodeGen/MachineFunction.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/MachineFunction.cpp b/llvm/lib/CodeGen/MachineFunction.cpp index 08c93f2..c8039f5 100644 --- a/llvm/lib/CodeGen/MachineFunction.cpp +++ b/llvm/lib/CodeGen/MachineFunction.cpp @@ -57,6 +57,7 @@ void MachineFunctionInitializer::anchor() {} static const char *getPropertyName(MachineFunctionProperties::Property Prop) { typedef MachineFunctionProperties::Property P; switch(Prop) { + case P::FailedISel: return "FailedISel"; case P::IsSSA: return "IsSSA"; case P::Legalized: return "Legalized"; case P::NoPHIs: return "NoPHIs"; |