[all-commits] [llvm/llvm-project] 35ca64: [mlir][arith] Don't crash when folding a & ~a -> 0...

Benjamin Kramer via All-commits all-commits at lists.llvm.org
Wed Jan 25 05:09:36 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 35ca64989a75c93ea7e935ef11c3d1883c21cccd
      https://github.com/llvm/llvm-project/commit/35ca64989a75c93ea7e935ef11c3d1883c21cccd
  Author: Benjamin Kramer <benny.kra at googlemail.com>
  Date:   2023-01-25 (Wed, 25 Jan 2023)

  Changed paths:
    M mlir/lib/Dialect/Arith/IR/ArithOps.cpp
    M mlir/test/Dialect/Arith/canonicalize.mlir

  Log Message:
  -----------
  [mlir][arith] Don't crash when folding a & ~a -> 0 on vectors

m_Constant happily accepts vector splats, so just use the generic way of
getting a zero attribute.




More information about the All-commits mailing list