[all-commits] [llvm/llvm-project] c29522: [TargetLowering] prepareUREMEqFold/prepareSREMEqFo...

Simon Pilgrim via All-commits all-commits at lists.llvm.org
Mon May 17 03:03:57 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: c29522d6489adf85e0bf75fff7bdcf8b12b1b6e5
      https://github.com/llvm/llvm-project/commit/c29522d6489adf85e0bf75fff7bdcf8b12b1b6e5
  Author: Simon Pilgrim <llvm-dev at redking.me.uk>
  Date:   2021-05-17 (Mon, 17 May 2021)

  Changed paths:
    M llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp
    M llvm/test/CodeGen/X86/urem-seteq.ll

  Log Message:
  -----------
  [TargetLowering] prepareUREMEqFold/prepareSREMEqFold - account for non legal shift types

Ensure we tell getShiftAmountTy that we're working with pre-legalized types to prevent cases where the (legalized) shift type can no longer handle the (non-legalized) type width.

Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=34366




More information about the All-commits mailing list