llvm-6502/lib
Chen Li c2fa6d64b4 [LoopUnswitch] Add an else clause to IsTrivialUnswitchCondition() when checking HeaderTerm instruction type
Summary:
This is a trivial code change with no functionality effect. 

When LoopUnswitch determines trivial unswitch condition, it checks whether the loop header's terminator instruction is a branch instruction or switch instruction since trivial unswitch condition can only apply to these two instruction types. The current code does not fail the check directly on other instruction types, but check the nullness of LoopExitBB variable instead. The added else clause makes the check fail immediately on other instruction types and makes the code more obvious.  

Reviewers: reames

Subscribers: llvm-commits

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@242345 91177308-0d34-0410-b5e6-96231b3b80d8
2015-07-15 22:41:13 +00:00
..
Analysis Rename doFunction() in BFI to calculate() and change its parameters from pointers to references. 2015-07-15 19:58:26 +00:00
AsmParser
Bitcode
CodeGen TargetRegisterInfo: Provide a way to check assigned registers in getRegAllocationHints() 2015-07-15 22:16:00 +00:00
DebugInfo
ExecutionEngine
Fuzzer
IR Debug Info: Add basic support for external types references. 2015-07-15 17:01:41 +00:00
IRReader
LibDriver Initial support for writing thin archives. 2015-07-15 05:47:46 +00:00
LineEditor
Linker
LTO
MC [MC] Correctly escape .safeseh's symbol 2015-07-13 18:51:15 +00:00
Object Simplify a few uses of remove_filename by using parent_path instead. 2015-07-15 21:24:07 +00:00
Option
Passes
ProfileData
Support Simplify a few uses of remove_filename by using parent_path instead. 2015-07-15 21:24:07 +00:00
TableGen
Target TargetRegisterInfo: Provide a way to check assigned registers in getRegAllocationHints() 2015-07-15 22:16:00 +00:00
Transforms [LoopUnswitch] Add an else clause to IsTrivialUnswitchCondition() when checking HeaderTerm instruction type 2015-07-15 22:41:13 +00:00
CMakeLists.txt
LLVMBuild.txt
Makefile