Remove dead code in SimplifyCFG
authorJingyue Wu <jingyue@google.com>
Mon, 15 Sep 2014 20:48:13 +0000 (20:48 +0000)
committerJingyue Wu <jingyue@google.com>
Mon, 15 Sep 2014 20:48:13 +0000 (20:48 +0000)
commit5e49dcf79a0f85f698c4309a185df79e170b05e2
tree1c570155695cfc45d086d3a603d25445b408caa4
parent86bdc1efbecc3e3ff037701011b001b1194b4a06
Remove dead code in SimplifyCFG

Summary: UsedByBranch is always true according to how BonusInst is defined.

Test Plan:
Passes check-all, and also verified

if (BonusInst && !UsedByBranch) {
  ...
}

is never entered during check-all.

Reviewers: resistor, nadav, jingyue

Reviewed By: jingyue

Subscribers: llvm-commits, eliben, meheff

Differential Revision: http://reviews.llvm.org/D5324

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@217824 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Utils/SimplifyCFG.cpp