OSDN Git Service

[VectorCombine] fix crash while transforming constants
authorSanjay Patel <spatel@rotateright.com>
Fri, 19 Jun 2020 16:28:04 +0000 (12:28 -0400)
committerSanjay Patel <spatel@rotateright.com>
Fri, 19 Jun 2020 16:30:32 +0000 (12:30 -0400)
commit6d864097a2b5e5ec6404700ac240b47932492a7f
tree139fbd3b685523e4a97140d8551d561435695fc1
parent8ffb2097cc1adf5a0f964006a7633ed1ee4f59d3
[VectorCombine] fix crash while transforming constants

This is a variation of the proposal in D82049 with an extra test.
llvm/lib/Transforms/Vectorize/VectorCombine.cpp
llvm/test/Transforms/VectorCombine/X86/extract-binop.ll