This is an archive of the discontinued LLVM Phabricator instance.

Add a test case for LICM when promoting locals that may be read after the throw within the loop. NFCI.
ClosedPublic

Authored by trentxintong on Jan 17 2017, 1:00 PM.

Diff Detail

Repository
rL LLVM

Event Timeline

trentxintong created this revision.Jan 17 2017, 1:00 PM

LGTM.

test/Transforms/LICM/scalar-promote-unwind.ll
75 ↗(On Diff #84725)

Run-on sentence, and a little hard to understand in general. Maybe "In this test, a loop is within a try block. There is an explicit unwind edge out of the loop. Make sure this edge is treated as a loop exit, and that the loads and stores are promoted as expected."

Address comments.

This revision was automatically updated to reflect the committed changes.