[all-commits] [llvm/llvm-project] 2a2d24: [DAGCombine] foldVSelectOfConstants - ensure const...

Simon Pilgrim via All-commits all-commits at lists.llvm.org
Thu Mar 12 13:02:19 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 2a2d24201750117fca9db7aceff862ac6e16f2cf
      https://github.com/llvm/llvm-project/commit/2a2d24201750117fca9db7aceff862ac6e16f2cf
  Author: Simon Pilgrim <llvm-dev at redking.me.uk>
  Date:   2020-03-12 (Thu, 12 Mar 2020)

  Changed paths:
    M llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
    M llvm/test/CodeGen/X86/vselect-constants.ll

  Log Message:
  -----------
  [DAGCombine] foldVSelectOfConstants - ensure constants are same type

Fix bug identified by https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=21167, foldVSelectOfConstants must ensure that the 2 build vectors have scalars of the same type before trying to compare APInt values.




More information about the All-commits mailing list