[PATCH] D90703: [GVN] Make handling of zeros more consistent
Jameson Nash via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Nov 3 11:49:33 PST 2020
vtjnash created this revision.
Herald added subscribers: llvm-commits, hiraditya.
Herald added a project: LLVM.
vtjnash requested review of this revision.
This tries to handle zeroinitializer consistently, by preferring using
helper functions instead of re-implementing some of the same checks.
This lets us forward zeros successfully in a few more cases.
And since casting a zero should always be possible (without needing a
bitcast), make sure the canCoerce check reflects that, and that all
relevant users are handling that.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D90703
Files:
llvm/lib/Transforms/Utils/VNCoercion.cpp
llvm/test/Transforms/GVN/non-integral-pointers.ll
llvm/test/Transforms/GVN/vscale.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D90703.302648.patch
Type: text/x-patch
Size: 15386 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20201103/d6aee417/attachment.bin>
More information about the llvm-commits
mailing list