Make TruncCombine class ignore unreachable basic blocks.
This should solve PR36134.
Paths
| Differential D42683
[AggressiveInstCombine] fixed PR36134 ClosedPublic Authored by aaboud on Jan 30 2018, 4:11 AM.
Details
Diff Detail
Event TimelineComment Actions I don't know this code but the fix makes sense to me and it makes the crash I saw go away. Comment Actions LGTM. Nit: when proposing patches and writing the commit message, make the title be more descriptive than 'Fixed Bug ###'. Ie, the title should be something like the summary text shown here: ...and then add some motivation in the summary: That lets people who are scanning the mailing list or doing bisection archaeology know quickly what this commit is doing and why. This revision is now accepted and ready to land.Jan 30 2018, 7:34 AM Closed by commit rL323862: [AggressiveInstCombine] Make TruncCombine class ignore unreachable basic blocks. (authored by aaboud). · Explain WhyJan 31 2018, 2:44 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 132126 llvm/trunk/lib/Transforms/AggressiveInstCombine/AggressiveInstCombine.cpp
llvm/trunk/lib/Transforms/AggressiveInstCombine/AggressiveInstCombineInternal.h
llvm/trunk/lib/Transforms/AggressiveInstCombine/TruncInstCombine.cpp
llvm/trunk/test/Transforms/AggressiveInstCombine/trunc_unreachable_bb.ll
|