Displaying 2 results from an estimated 2 matches for "link_point_c".
2016 Dec 02
2
Is the instruction %4 = select i1 %tobool.i, metadata !12, metadata !10 legal?
...argmemonly nounwind
declare void @llvm.lifetime.start(i64, i8* nocapture) #1
; Function Attrs: uwtable
define linkonce_odr void @_ZN1G13final_insert_Ev(%struct.G* %this) local_unnamed_addr #0 comdat align 2 {
entry:
%call = call dereferenceable(16) %struct.G* @_ZN1G5finalEv(%struct.G* %this)
%link_point_c.i = getelementptr inbounds %struct.G, %struct.G* %call, i64 0, i32 1
%0 = load i32, i32* %link_point_c.i, align 8, !tbaa !1
%tobool.i = icmp eq i32 %0, 0
%1 = bitcast %struct.G* %call to i8**
%2 = load i8*, i8** %1, align 8, !tbaa !7
br i1 %tobool.i, label %cond.false.i, label %cond.true....
2016 Dec 02
4
Is the instruction %4 = select i1 %tobool.i, metadata !12, metadata !10 legal?
Hi,
The phase of instruction combine cannot handle the instruction %4 = select i1 %tobool.i, metadata !12, metadata !10 generated by the phase of CFG simplification and the compiler generates an assertion failure.
I wonder whether this is valid LLVM IR:
%4 = select i1 %tobool.i, metadata !12, metadata !10
Before CFGSimplify
cond.true.i: ; preds = %entry