This is a fix for https://bugs.llvm.org/show_bug.cgi?id=42585, triggered by a bitcast that enlarges the size of the vector type. Current codebase doesn't support that.
Diff Detail
Diff Detail
- Repository
 - rG LLVM Github Monorepo
 
Paths 
  |  Differential  D66790  
Fix SROA in presence of incompatible vector types in the same partition AbandonedPublic Authored by serge-sans-paille on Aug 27 2019, 2:19 AM. 
Details Summary This is a fix for https://bugs.llvm.org/show_bug.cgi?id=42585, triggered by a bitcast that enlarges the size of the vector type. Current codebase doesn't support that. 
Diff Detail 
 Event Timeline
Revision Contents 
 
Diff 219861 llvm/lib/Transforms/Scalar/SROA.cpp
 llvm/test/Transforms/SROA/bitcast-vectype.ll
 
  | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||