[all-commits] [llvm/llvm-project] f067dd: [LegalizeTypes] When promoting BITREVERSE/BSWAP do...

topperc via All-commits all-commits at lists.llvm.org
Sun Oct 27 12:23:02 PDT 2019


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: f067dd839eca3103e8afc49c6e0a74d944f25fdd
      https://github.com/llvm/llvm-project/commit/f067dd839eca3103e8afc49c6e0a74d944f25fdd
  Author: Craig Topper <craig.topper at gmail.com>
  Date:   2019-10-27 (Sun, 27 Oct 2019)

  Changed paths:
    M llvm/lib/CodeGen/SelectionDAG/LegalizeIntegerTypes.cpp
    A llvm/test/CodeGen/X86/pr43820.ll

  Log Message:
  -----------
  [LegalizeTypes] When promoting BITREVERSE/BSWAP don't take the shift amount into account when determining the shift amount VT.

If the target's preferred shift amount VT can't hold any shift
amount for the promoted VT, we should use i32. The specific shift
amount shouldn't matter. The type will be adjusted later when the
shift itself is type legalized. This avoids an assert in getNode.

Fixes PR43820.




More information about the All-commits mailing list