This is an archive of the discontinued LLVM Phabricator instance.

[InstCombine][DebugInfo] Remove superflous assertion, add test
ClosedPublic

Authored by peterwaller-arm on Oct 13 2021, 8:46 AM.

Details

Summary

When this code was added, an unnecessary assertion slipped in which we
now hit in real code.

Add a test to defend against it firing again.

Diff Detail

Event Timeline

peterwaller-arm requested review of this revision.Oct 13 2021, 8:46 AM
Herald added a project: Restricted Project. · View Herald TranscriptOct 13 2021, 8:46 AM
llvm/test/Transforms/InstCombine/debuginfo-scalable-typesize.ll
24

Would it invalid the test if this is changed to ret float %b ?

peterwaller-arm marked an inline comment as done.
  • Use result of the load.
llvm/test/Transforms/InstCombine/debuginfo-scalable-typesize.ll
24

Done.

paulwalker-arm accepted this revision.Oct 14 2021, 5:17 AM
This revision is now accepted and ready to land.Oct 14 2021, 5:17 AM

I erroneously submitted an old version of this patch. Correction in ee7ca88a3ec55a3cd8a81ce54beba12f6b047857.