[PATCH] D81212: [X86] Teach combineVectorShiftImm to constant fold undef elements to 0 not undef.

Sanjay Patel via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Jun 5 10:01:53 PDT 2020


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

LGTM - I double-checked that generic constant folding in IR and SDAG gets this right:

  // shift undef, Y --> 0 (can always assume that the undef value is 0)


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D81212





More information about the llvm-commits mailing list