tryLocalSplit only handles a single use block, but an interval may have multiple use blocks. So don't crash in that case. This fixes PR38795.
Details
Details
Diff Detail
Diff Detail
- Build Status
Buildable 22882 Build 22882: arc lint + arc unit
Paths
| Differential D52277
[RegAllocGreedy] Fix crash in tryLocalSplit ClosedPublic Authored by waltl on Sep 19 2018, 12:33 PM.
Details Summary tryLocalSplit only handles a single use block, but an interval may have multiple use blocks. So don't crash in that case. This fixes PR38795.
Diff Detail
Event TimelineHerald added subscribers: llvm-commits, hiraditya, qcolombet, MatzeB. · View Herald TranscriptSep 19 2018, 12:33 PM waltl retitled this revision from [RegAlloc] Fix check for local splitting. to [RegAllocGreedy] Fix crash in tryLocalSplit.Sep 20 2018, 12:36 PM This revision is now accepted and ready to land.Sep 20 2018, 12:49 PM Closed by commit rL342682: [RegAllocGreedy] Fix crash in tryLocalSplit (authored by waltl). · Explain WhySep 20 2018, 1:09 PM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 166346 llvm/lib/CodeGen/RegAllocGreedy.cpp
llvm/test/CodeGen/X86/pr38795.ll
|