[PATCH] D125671: [InstCombine] Allow undef vectors when foldSelectToCopysign

Sanjay Patel via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon May 16 10:13:23 PDT 2022


spatel added a comment.

This does not look correct.

In the example test, if both elements of X are negative, we should return <-42.0, -42.0>. But after this transform, we will return <-42.0, undef>?


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D125671



More information about the llvm-commits mailing list