aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/MachineInstr.cpp
diff options
context:
space:
mode:
authorNadav Rotem <nrotem@apple.com>2012-09-04 10:25:04 +0000
committerNadav Rotem <nrotem@apple.com>2012-09-04 10:25:04 +0000
commit03dcd85b56329286d99ad6bc5f076be534539fff (patch)
treee1e1519ed0a3909d41ed8a2faf77169d34954794 /llvm/lib/CodeGen/MachineInstr.cpp
parentc439a426499df7fa4e829087228bc3e313dd1e81 (diff)
downloadllvm-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