[all-commits] [llvm/llvm-project] 1085b7: [DAG] Don't fold (zext (bitop (load x), cst)) -> (...

Simon Pilgrim via All-commits all-commits at lists.llvm.org
Sat Nov 4 08:33:02 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 1085b70a94d34a645d97990e1ac213882af5128e
      https://github.com/llvm/llvm-project/commit/1085b70a94d34a645d97990e1ac213882af5128e
  Author: Simon Pilgrim <llvm-dev at redking.me.uk>
  Date:   2023-11-04 (Sat, 04 Nov 2023)

  Changed paths:
    M llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
    M llvm/test/CodeGen/X86/wide-scalar-shift-by-byte-multiple-legalization.ll

  Log Message:
  -----------
  [DAG] Don't fold (zext (bitop (load x), cst)) -> (bitop (zextload x), (zext cst)) if the zext is free

Prevents an infinite loop if we've been trying to narrow the bitop to a more preferable type




More information about the All-commits mailing list