[PATCH] D80516: [ConstantFolding] Constant folding for integer vector reduce intrinsics

Dave Green via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue May 26 02:07:32 PDT 2020


dmgreen updated this revision to Diff 266122.
dmgreen added a comment.

> Do we need to explicitly handle an undef vector here?

Do you mean an undef vector or a vector with undef's in it? I can change either if you think it is worth it. I didn't so far because I couldn't find anything to automatically handle it, and didn't want to replicate the logic here if I could help it.


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D80516/new/

https://reviews.llvm.org/D80516

Files:
  llvm/lib/Analysis/ConstantFolding.cpp
  llvm/test/Analysis/ConstantFolding/vecreduce.ll
  llvm/test/Transforms/LoopVectorize/reduction-inloop.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D80516.266122.patch
Type: text/x-patch
Size: 24409 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200526/0646579e/attachment.bin>


More information about the llvm-commits mailing list