[PATCH] D123174: [TypePromotion] Promote undef by converting to 0.

Sam Parker via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Apr 6 00:33:19 PDT 2022


samparker added a comment.

Hi @craig.topper, so this is interesting because the AArch64 trunc-zext-chain.ll test file is a reproducer for a bug that I couldn't solve. The test function has two versions, because I couldn't figure out if having an undef was the underlying issue. I //think// it was causing some trouble with GetDemandedBits, but I was unable to figure it out with some very dense logic in the AArch64 backend. So I'm certainly happy to entertain this idea and matching the behaviour of InstCombine/InstSimplify sounds good to me.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D123174



More information about the llvm-commits mailing list