search for: pr10254

Displaying 1 result from an estimated 1 matches for "pr10254".

Did you mean: nd10254
2014 Feb 05
4
[LLVMdev] Optimisation of select/cmp/br
Hi, Is there anyway I can coerce LLVM into performing the following transformation? %1 = icmp eq i32 %flag, 1 %2 = select i1 %1, %foo* %data, %struct.cell_t* null %3 = icmp eq %foo* %2, null br i1 %3, label %failure, label %success Into: %1 = icmp eq i32 %flag, 1 br i1 %1, label %success, label %failure With %data substituted for %2 in %success and its successors, and null