[PATCH] fix for PR17073 (simplifycfg hoists an operation that can trap)
spatel at rotateright.com
Mon Jul 7 09:40:01 PDT 2014
In PR17073 ( http://llvm.org/pr17073 ), simplifycfg illegally hoists an operation in a phi node that can trap.
This patch adds to an existing loop over phi nodes in SimplifyCondBranchToCondBranch() to check for trapping ops and bails out of the optimization if we find one of those.
The test cases verify that trapping ops are not hoisted and non-trapping ops are still optimized as expected.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 5113 bytes
Desc: not available
More information about the llvm-commits