This is an archive of the discontinued LLVM Phabricator instance.

CGCleanup: (NFC) add another test for r304335 - Don't try to spill static allocas
ClosedPublic

Authored by GorNishanov on May 31 2017, 5:45 PM.

Details

Summary

Coroutine related test that used to trigger broken IR prior to r304335.

%x = alloca i32, align 4
store i32* %x, i32** %tmp.exprcleanup, align 4 ; <===== HERE
%ref.tmp3 = alloca %struct.A, align 1
%agg.tmp5 = alloca %"struct.std::experimental::coroutines_v1::coroutine_handle.0", align 4
%tmp.exprcleanup = alloca i32*, align 4
%allocapt = bitcast i32 undef to i32
store i32 %0, i32* %.addr, align 4

Fixed with r304335

Diff Detail

Repository
rL LLVM

Event Timeline

GorNishanov created this revision.May 31 2017, 5:45 PM
GorNishanov retitled this revision from CGCleanup: (NFC) add a test that used to trigger broken IR to CGCleanup: (NFC) add another test for r304335 - Don't try to spill static allocas.May 31 2017, 5:48 PM
GorNishanov edited the summary of this revision. (Show Details)
This revision was automatically updated to reflect the committed changes.