[all-commits] [llvm/llvm-project] 9d2280: [DAG] visitFreeze - account for operand depth when...

Simon Pilgrim via All-commits all-commits at lists.llvm.org
Wed Aug 31 04:20:58 PDT 2022


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

  Changed paths:
    M llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
    A llvm/test/CodeGen/X86/pr57402.ll

  Log Message:
  -----------
  [DAG] visitFreeze - account for operand depth when calling isGuaranteedNotToBeUndefOrPoison (PR57402)

We were calling isGuaranteedNotToBeUndefOrPoison on operands (with Depth = 0), but wasn't accounting for the fact that a later isGuaranteedNotToBeUndefOrPoison assertion will call from the new node (with Depth = 0 as well) - which will then recursively call isGuaranteedNotToBeUndefOrPoison for its operands with Depth = 1

Fixes #57402




More information about the All-commits mailing list