[all-commits] [llvm/llvm-project] 7a7146: [X86] When creating X86ISD::MGATHER nodes from AVX...

topperc via All-commits all-commits at lists.llvm.org
Sun Feb 23 23:26:15 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 7a7146cf72ad46f706e892f32f64405665f31ba3
      https://github.com/llvm/llvm-project/commit/7a7146cf72ad46f706e892f32f64405665f31ba3
  Author: Craig Topper <craig.topper at gmail.com>
  Date:   2020-02-23 (Sun, 23 Feb 2020)

  Changed paths:
    M llvm/lib/Target/X86/X86ISelDAGToDAG.cpp
    M llvm/lib/Target/X86/X86ISelLowering.cpp

  Log Message:
  -----------
  [X86] When creating X86ISD::MGATHER nodes from AVX2 gather intrinsics, cast the mask to integer type.

The gather intrinsics use a floating point mask when the result
type is FP. But we call DemandedBits on the mask assuming its an
integer type. We also use integer types when we create it from
generic IR. So add a bitcast to the intrinsic path to guarantee
the integer type.




More information about the All-commits mailing list