[llvm-commits] [patch] Enable simplifycfg in bb with only a lifetime intrinsic

Rafael Ávila de Espíndola rafael.espindola at gmail.com
Fri Jun 24 22:10:36 PDT 2011


I noticed that simplify cfg would fail to simplify bbs like

bb:
  call void @llvm.lifetime.end(i64 -1, i8* %a) nounwind
  br label %bb1

The attached patch enables that. It can cause a llvm.lifetime.* to be lost,
but if I understand the manual correctly, that is fine: the argument now
has a larger life range.

Cheers,
Rafael
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: lifetime.patch
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20110625/f2a08b34/attachment.ksh>


More information about the llvm-commits mailing list