[PATCH] D91729: [PowerPC] dyn_cast should be dyn_cast_or_null in MASSV pass

Masoud Ataei via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Nov 18 11:23:00 PST 2020


masoud.ataei created this revision.
masoud.ataei added reviewers: nemanjai, Whitney, steven.zhang, PowerPC.
Herald added subscribers: llvm-commits, shchenz, kbarton, hiraditya.
Herald added a project: LLVM.
masoud.ataei requested review of this revision.

It is possible that we have different constants in different slots of a vector double (float). 
So, in this case Exp->getSplatValue() will return nullptr. 
Here, I am proposing to handle it properly.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D91729

Files:
  llvm/lib/Target/PowerPC/PPCLowerMASSVEntries.cpp
  llvm/test/CodeGen/PowerPC/pow_massv_075_025exp.ll
  llvm/test/CodeGen/PowerPC/powf_massv_075_025exp.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D91729.306163.patch
Type: text/x-patch
Size: 10164 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20201118/4e29922a/attachment-0001.bin>


More information about the llvm-commits mailing list