diff options
author | Nadav Rotem <nrotem@apple.com> | 2012-09-04 10:25:04 +0000 |
---|---|---|
committer | Nadav Rotem <nrotem@apple.com> | 2012-09-04 10:25:04 +0000 |
commit | 03dcd85b56329286d99ad6bc5f076be534539fff (patch) | |
tree | e1e1519ed0a3909d41ed8a2faf77169d34954794 /llvm/lib/CodeGen/MachineInstr.cpp | |
parent | c439a426499df7fa4e829087228bc3e313dd1e81 (diff) | |
download | llvm-03dcd85b56329286d99ad6bc5f076be534539fff.zip llvm-03dcd85b56329286d99ad6bc5f076be534539fff.tar.gz llvm-03dcd85b56329286d99ad6bc5f076be534539fff.tar.bz2 |
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
llvm-svn: 163132
Diffstat (limited to 'llvm/lib/CodeGen/MachineInstr.cpp')
0 files changed, 0 insertions, 0 deletions