[all-commits] [llvm/llvm-project] f4f270: [ConstantFold][SVE] Fix constant folding for scala...
huihzhang via All-commits
all-commits at lists.llvm.org
Thu Mar 12 16:16:45 PDT 2020
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: f4f2706572b1851d902fd569d8fb75bc42c8c82b
https://github.com/llvm/llvm-project/commit/f4f2706572b1851d902fd569d8fb75bc42c8c82b
Author: Huihui Zhang <huihuiz at quicinc.com>
Date: 2020-03-12 (Thu, 12 Mar 2020)
Changed paths:
M llvm/lib/IR/ConstantFold.cpp
M llvm/lib/IR/Constants.cpp
M llvm/test/Analysis/ConstantFolding/vscale.ll
Log Message:
-----------
[ConstantFold][SVE] Fix constant folding for scalable vector compare instruction.
Summary:
Do not iterate on scalable vector. Also do not return constant scalable vector
from ConstantInt::get().
Fix result type by using getElementCount() instead of getNumElements().
Reviewers: sdesmalen, efriedma, apazos, huntergr, willlovett
Reviewed By: efriedma
Subscribers: tschuett, hiraditya, rkruppe, psnobl, llvm-commits
Tags: #llvm
Differential Revision: https://reviews.llvm.org/D73753
More information about the All-commits
mailing list