[all-commits] [llvm/llvm-project] 6d6287: [NFC] Fix test for zext(shl(trunc)) fold (#113778)

Andreas Jonson via All-commits all-commits at lists.llvm.org
Tue Nov 5 09:13:55 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 6d6287af842ded11771b23dd57c425a533c28d4b
      https://github.com/llvm/llvm-project/commit/6d6287af842ded11771b23dd57c425a533c28d4b
  Author: Andreas Jonson <andjo403 at hotmail.com>
  Date:   2024-11-05 (Tue, 05 Nov 2024)

  Changed paths:
    M llvm/test/Transforms/InstCombine/trunc-shl-zext.ll

  Log Message:
  -----------
  [NFC] Fix test for zext(shl(trunc)) fold (#113778)

This fold already exist but there is a call to [shouldChangeType
](https://github.com/llvm/llvm-project/blob/91fdfec263ff2b8e88433c4294a550cabb0f2314/llvm/lib/Transforms/InstCombine/InstCombineCasts.cpp#L1202)
that blocks it if the target layout is missing a definition of the types
in the casts.

closes https://github.com/llvm/llvm-project/issues/61650



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list