In both ADCE and BDCE (via DemandedBits) we should not remove instructions that are not guaranteed to return. This issue was pointed out by @fhahn in the recent llvm-dev thread.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
This revision is now accepted and ready to land.Feb 18 2021, 1:37 PM
This revision was landed with ongoing or failed builds.Feb 19 2021, 3:36 AM
Closed by commit rG2f17ed294fcd: [DCE] Don't remove non-willreturn calls (authored by nikic). · Explain Why
This revision was automatically updated to reflect the committed changes.