commit | 7765492a7a7e6eab36bc43558ea7c1f91e57cfec | [log] [tgz] |
---|---|---|
author | Nadav Rotem <nrotem@apple.com> | Tue Sep 04 10:25:04 2012 +0000 |
committer | Nadav Rotem <nrotem@apple.com> | Tue Sep 04 10:25:04 2012 +0000 |
tree | 9c5cb82bd89c30a288cc00c830e1e1b74969f93d | |
parent | 68d92bdcc99e647546f40cfce5cfbeb904be2985 [diff] |
LICM may hoist an instruction with undefined behavior above a trap. Scan the body of the loop and find instructions that may trap. Use this information when deciding if it is safe to hoist or sink instructions. Notice that we can optimize the search of instructions that may throw in the case of nested loops. rdar://11518836 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@163132 91177308-0d34-0410-b5e6-96231b3b80d8