[all-commits] [llvm/llvm-project] e2d13f: [DAG] canCreateUndefOrPoison - add freeze(shl(x, y)...

Simon Pilgrim via All-commits all-commits at lists.llvm.org
Sun Aug 14 07:07:22 PDT 2022

  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: e2d13fd096cb94f09cdb0611c9bda4cf88d3ce63
  Author: Simon Pilgrim <llvm-dev at redking.me.uk>
  Date:   2022-08-14 (Sun, 14 Aug 2022)

  Changed paths:
    M llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
    M llvm/test/CodeGen/X86/freeze-binary.ll

  Log Message:
  [DAG] canCreateUndefOrPoison - add freeze(shl(x,y)) -> shl(freeze(x),y) support

These are guaranteed not to create undef/poison if the shift amount is known to be in range

More information about the All-commits mailing list