[all-commits] [llvm/llvm-project] b86a1c: [PowerPC] dyn_cast should be dyn_cast_or_null in M...
Masoud Ataei Jaliseh via All-commits
all-commits at lists.llvm.org
Tue Nov 24 08:22:17 PST 2020
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: b86a1cd2f8540b311b5b921235e612fea4134dff
https://github.com/llvm/llvm-project/commit/b86a1cd2f8540b311b5b921235e612fea4134dff
Author: Masoud Ataei <msd.ataei at gmail.com>
Date: 2020-11-24 (Tue, 24 Nov 2020)
Changed paths:
M llvm/lib/Target/PowerPC/PPCLowerMASSVEntries.cpp
M llvm/test/CodeGen/PowerPC/pow_massv_075_025exp.ll
M llvm/test/CodeGen/PowerPC/powf_massv_075_025exp.ll
Log Message:
-----------
[PowerPC] dyn_cast should be dyn_cast_or_null in MASSV pass
It is possible that we have different constants in different slots
of second vector double (float) of pow function. So, in this case
Exp->getSplatValue() will return nullptr. Here, I handle it properly.
Reviewed By: steven.zhang, PowerPC
Differential Revision: https://reviews.llvm.org/D91729
More information about the All-commits
mailing list