[VNCoercion] avoid creating bitcast for zero offsets [NFCI]
authorJameson Nash <vtjnash@gmail.com>
Wed, 6 Nov 2019 17:00:36 +0000 (12:00 -0500)
committerJameson Nash <vtjnash@gmail.com>
Tue, 14 Jul 2020 01:44:17 +0000 (21:44 -0400)
commite244f86f4dfd9e8982940d09294af522d3809d7f
tree445b5e1a6b9fbd49a2c7a595d2639154dc909000
parent19f01a484760d9a29f4f414b30da110dd6550191
[VNCoercion] avoid creating bitcast for zero offsets [NFCI]

This could previously make it more complicated for ConstantFolding
later, leading to a higher likelyhood it would have to reject the
expression, even though zero seems like probably the common case here.

Differential Revision: https://reviews.llvm.org/D59730
llvm/lib/Transforms/Utils/VNCoercion.cpp