[PATCH] PR19137: Correct PRE handling of llvm.sadd.with.overflow followed by add.
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...
Size: 3185 bytes
Desc: not available
More information about the llvm-commits