| commit | a932da8f356c7f17f1fa27532e80353253482dd9 | [log] [tgz] |
|---|---|---|
| author | Sanjay Patel <spatel@rotateright.com> | Mon Jul 07 21:19:00 2014 +0000 |
| committer | Sanjay Patel <spatel@rotateright.com> | Mon Jul 07 21:19:00 2014 +0000 |
| tree | 205da5a60cf0c481eff040b320e365d1e255e8cd | |
| parent | 020ed611ff232cba28d33331be3e9e2f4c0c9539 [diff] |
Fix for 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. llvm-svn: 212490