[all-commits] [llvm/llvm-project] 9aa773: [LoopFlatten] Widen the IV
sjoerdmeijer via All-commits
all-commits at lists.llvm.org
Mon Nov 16 02:20:57 PST 2020
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: 9aa773381bd546f205f33e4d91dcfa89526ec0e2
https://github.com/llvm/llvm-project/commit/9aa773381bd546f205f33e4d91dcfa89526ec0e2
Author: Sjoerd Meijer <sjoerd.meijer at arm.com>
Date: 2020-11-16 (Mon, 16 Nov 2020)
Changed paths:
M llvm/lib/Transforms/Scalar/LoopFlatten.cpp
M llvm/test/Transforms/LoopFlatten/loop-flatten-negative.ll
A llvm/test/Transforms/LoopFlatten/widen-iv.ll
Log Message:
-----------
[LoopFlatten] Widen the IV
Widen the IV to the widest available and legal integer type, which makes this
transformations always safe so that we can skip overflow checks.
Motivation is to let this pass trigger on 64-bit targets too, and this is the
last patch in a serie to achieve this: D90402 moves pass LoopFlatten to just
before IndVarSimplify so that IVs are not already widened, D90421 factors out
widening from IndVarSimplify into Utils/SimplifyIndVar so that we can also use
it in LoopFlatten.
Differential Revision: https://reviews.llvm.org/D90640
More information about the All-commits
mailing list