commit | 0488e47901ed6692e73a38a8ca97e0dbb9345920 | [log] [tgz] |
---|---|---|
author | Wei Mi <wmi@google.com> | Tue Aug 29 21:45:11 2017 +0000 |
committer | Wei Mi <wmi@google.com> | Tue Aug 29 21:45:11 2017 +0000 |
tree | e7753e9bfc6fac7199826a21e8ac2d94390e5175 | |
parent | 943b3d489cdfb648ba842a852b3473d9673de61c [diff] |
[LoopUnswitch] Fix a simple bug which disables loop unswitch for select statement This is to fix PR34257. rL309059 takes an early return when FindLIVLoopCondition fails to find a loop invariant condition. This is wrong and it will disable loop unswitch for select. The patch fixes the bug. Differential Revision: https://reviews.llvm.org/D36985 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@312045 91177308-0d34-0410-b5e6-96231b3b80d8