[PATCH] D79171: [InstCombine] canonicalize bitcast after insertelement into undef

Roman Lebedev via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Apr 30 10:41:06 PDT 2020


lebedev.ri added a comment.

In D79171#2013138 <https://reviews.llvm.org/D79171#2013138>, @craig.topper wrote:

> I messed with mmx in this area once and regretted it. See rG5ebbabc1af360756f402203ba7704bb480f279a7 <https://reviews.llvm.org/rG5ebbabc1af360756f402203ba7704bb480f279a7>
>
> Is canonicalizing towards a vector type that wasn't mentioned in the IR the right way to go? Is that cast free for legal types on all targets? I think its potentially scalarized or becomes a load/store to stack temporary for illegal types in the backend.


It kinda sounds to me like such cases should use some custom intrinsics instead of generic bitcasts.


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

https://reviews.llvm.org/D79171





More information about the llvm-commits mailing list