[PATCH] D70075: [InstCombine] Skip scalable vectors in combineLoadToOperationType

Sander de Smalen via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Nov 12 01:56:25 PST 2019


sdesmalen accepted this revision.
sdesmalen added a comment.
This revision is now accepted and ready to land.

LGTM!



================
Comment at: llvm/test/Transforms/InstCombine/load.ll:240
 
+define void @test16-vect(i8* %x, i8* %a, i8* %b, i8* %c) {
+; CHECK-LABEL: @test16-vect(
----------------
rovka wrote:
> sdesmalen wrote:
> > Is this just adding a missing test-case for existing code, or are you trying to test something else?
> I'm just trying to make sure we're not accidentally breaking anything for fixed-sized vectors. It's essentially the same test-case as test16, but with vectors instead of float (the code should do the same thing for any type of that size). It should work the same before and after this patch, so I could commit it separately if you think it makes more sense that way. Personally I think it fits well in the context of this patch, since we're not trying to exhaustively test every possible type.
Okay that's fine, I agree we can keep the test. Thanks for clarifying! 


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

https://reviews.llvm.org/D70075





More information about the llvm-commits mailing list