Reapply r60997, this time without forgetting that

target constants are allowed to have an illegal
type.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@61006 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Duncan Sands
2008-12-14 09:43:15 +00:00
parent 3c8da59482
commit b6862bbe34
3 changed files with 15 additions and 8 deletions

View File

@@ -620,9 +620,9 @@ void SelectionDAGISel::CodeGenAndEmitDAG() {
if (TimePassesIsEnabled) {
NamedRegionTimer T("DAG Legalization", GroupName);
CurDAG->Legalize();
CurDAG->Legalize(DisableLegalizeTypes);
} else {
CurDAG->Legalize();
CurDAG->Legalize(DisableLegalizeTypes);
}
DOUT << "Legalized selection DAG:\n";