[PATCH] PR19137: Correct PRE handling of llvm.sadd.with.overflow followed by add.

Erik Verbruggen erik.verbruggen at me.com
Mon Mar 17 02:23:36 PDT 2014


When PRE finds a leader for a non-intrinsic (e.g. add), where that
leader is an intrinsic (e.g. llvm.sadd.with.overflow), and the basic
block for the non-intrinsic has multiple incoming edges, then do not
insert a phi-node, because the types will be different.

The previous version only/accidentally worked for 2 incoming edges. The
testcase is changed to test 3 edges.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-PR19137-Correct-PRE-handling-of-llvm.sadd.with.overf.patch
Type: application/octet-stream
Size: 3185 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20140317/53bad840/attachment.obj>


More information about the llvm-commits mailing list