aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Transforms/Utils/SimplifyIndVar.cpp
diff options
context:
space:
mode:
authorSanjay Patel <spatel@rotateright.com>2019-06-11 22:25:18 +0000
committerSanjay Patel <spatel@rotateright.com>2019-06-11 22:25:18 +0000
commit40e3bdf8764d4d6053305bd602832912da245cdf (patch)
treedf43473d4bde24babc7020232ac680b753a323b9 /llvm/lib/Transforms/Utils/SimplifyIndVar.cpp
parent898d48117430eac158fb3b01741ac4a3c63b4a4e (diff)
downloadllvm-40e3bdf8764d4d6053305bd602832912da245cdf.zip
llvm-40e3bdf8764d4d6053305bd602832912da245cdf.tar.gz
llvm-40e3bdf8764d4d6053305bd602832912da245cdf.tar.bz2
[Analysis] add isSplatValue() for vectors in IR
We have the related getSplatValue() already in IR (see code just above the proposed addition). But sometimes we only need to know that the value is a splat rather than capture the splatted scalar value. Also, we have an isSplatValue() function already in SDAG. Motivation - recent bugs that would potentially benefit from improved splat analysis in IR: https://bugs.llvm.org/show_bug.cgi?id=37428 https://bugs.llvm.org/show_bug.cgi?id=42174 Differential Revision: https://reviews.llvm.org/D63138 llvm-svn: 363106
Diffstat (limited to 'llvm/lib/Transforms/Utils/SimplifyIndVar.cpp')
0 files changed, 0 insertions, 0 deletions