diff options
| author | Dan Gohman <gohman@apple.com> | 2010-02-17 00:42:19 +0000 |
|---|---|---|
| committer | Dan Gohman <gohman@apple.com> | 2010-02-17 00:42:19 +0000 |
| commit | 13ac3b21395585156281251ade6cde2fd8e3e461 (patch) | |
| tree | fc8c744050a288982cf1d943a8ba84635dde48a7 | |
| parent | 5f10d6c52c8fadd914fb45dea6f72d5f5f89a96e (diff) | |
| download | bcm5719-llvm-13ac3b21395585156281251ade6cde2fd8e3e461.tar.gz bcm5719-llvm-13ac3b21395585156281251ade6cde2fd8e3e461.zip | |
Delete some unneeded casts.
llvm-svn: 96429
| -rw-r--r-- | llvm/lib/Transforms/Scalar/LoopStrengthReduce.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Transforms/Scalar/LoopStrengthReduce.cpp b/llvm/lib/Transforms/Scalar/LoopStrengthReduce.cpp index 9d11876c21d..b0b0934de30 100644 --- a/llvm/lib/Transforms/Scalar/LoopStrengthReduce.cpp +++ b/llvm/lib/Transforms/Scalar/LoopStrengthReduce.cpp @@ -2115,7 +2115,7 @@ void LSRInstance::GenerateICmpZeroScales(LSRUse &LU, unsigned LUIdx, if (F.AM.BaseOffs == INT64_MIN && Factor == -1) continue; F.AM.BaseOffs = (uint64_t)Base.AM.BaseOffs * Factor; - if ((int64_t)F.AM.BaseOffs / Factor != Base.AM.BaseOffs) + if (F.AM.BaseOffs / Factor != Base.AM.BaseOffs) continue; // Check that multiplying with the use offset doesn't overflow. @@ -2123,7 +2123,7 @@ void LSRInstance::GenerateICmpZeroScales(LSRUse &LU, unsigned LUIdx, if (Offset == INT64_MIN && Factor == -1) continue; Offset = (uint64_t)Offset * Factor; - if ((int64_t)Offset / Factor != LU.MinOffset) + if (Offset / Factor != LU.MinOffset) continue; // Check that this scale is legal. |

