[all-commits] [llvm/llvm-project] e51b7b: [InstCombine] Fix inversion of constants

Roman Lebedev via All-commits all-commits at lists.llvm.org
Tue Dec 20 07:20:54 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: e51b7bff192f5c2712009a28eed1544ff45913c1
      https://github.com/llvm/llvm-project/commit/e51b7bff192f5c2712009a28eed1544ff45913c1
  Author: Roman Lebedev <lebedev.ri at gmail.com>
  Date:   2022-12-20 (Tue, 20 Dec 2022)

  Changed paths:
    M llvm/include/llvm/Transforms/InstCombine/InstCombiner.h
    M llvm/lib/Transforms/InstCombine/InstCombineAndOrXor.cpp
    A llvm/test/Transforms/InstCombine/pr59613.ll

  Log Message:
  -----------
  [InstCombine] Fix inversion of constants

`canFreelyInvertAllUsersOf()`, in general, does not make sense
for constants, and constant expressions are likely even more problematic.
For those, we just want to create a simple constant expression and be done.

Fixes https://github.com/llvm/llvm-project/issues/59613




More information about the All-commits mailing list