[all-commits] [llvm/llvm-project] f52dd9: [InstCombine] Fix bug when folding x + (x | -x) to...

Marc Auberer via All-commits all-commits at lists.llvm.org
Sun Sep 18 10:16:55 PDT 2022

  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: f52dd920d400e35d0825ac418dd56f6419312caa
  Author: Marc Auberer <contact at marc-auberer.com>
  Date:   2022-09-18 (Sun, 18 Sep 2022)

  Changed paths:
    M llvm/lib/Transforms/InstCombine/InstCombineAddSub.cpp
    M llvm/test/Transforms/InstCombine/add_or_sub.ll

  Log Message:
  [InstCombine] Fix bug when folding x + (x | -x) to x & (x - 1)

Addresses concern: https://reviews.llvm.org/rG09cdddea0c4d284c2c22f5dfade40a60850c5ea7

There was a copy/paste mistake in the code. Updated code and test ref.

Differential Revision: https://reviews.llvm.org/D134135

More information about the All-commits mailing list