Skip to content
Commit 1b55f56b authored by Evan Cheng's avatar Evan Cheng
Browse files

Fix LoopUnswitch bug. RewriteLoopBodyWithConditionConstant can delete a dead

case of a switch instruction. Back off this optimization when this would
eliminate all of the predecessors to the latch.

Sorry, I am unable to reduce a reasonably sized test case.

rdar://9486843

llvm-svn: 132022
parent 9b72eb71
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment