[all-commits] [llvm/llvm-project] 0dbc46: [X86] Handle splats in LowerBUILD_VECTORvXi1 by di...

topperc via All-commits all-commits at lists.llvm.org
Tue Feb 18 22:40:01 PST 2020


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

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

  Log Message:
  -----------
  [X86] Handle splats in LowerBUILD_VECTORvXi1 by directly emitting scalar selects instead of deferring that to LowerSELECT.

LoweSELECT will detect the constant inputs and convert to scalar
selects, but we can do it directly here.

I might remove some of the code from LowerSELECT and move it to
DAG combine so doing this explicitly will make us less dependent
on it happening in lowering.




More information about the All-commits mailing list