This new pass allows targets to use the hazard recognizer without having
to also run one of the schedulers. This is useful when compiling with
optimizations disabled for targets that still need noop hazards
to be handled correctly.
Details
Details
Diff Detail
Diff Detail
Event Timeline
Comment Actions
Don't call HazardRec->reset() at the start of blocks. We want
to make sure we are able to detect hazards at the start of blocks.
lib/CodeGen/PostRAHazardRecognizer.cpp | ||
---|---|---|
101 | Should use unique_ptr |
Comment Actions
LGTM. I think the issues are fixable without adding a pass. However, it could be really nice to have a pass that fixes hazards without building a DAG.
Should use unique_ptr