[all-commits] [llvm/llvm-project] d5ee20: [InstCombine] Switch an or of icmps fold to use co...

Nikita Popov via All-commits all-commits at lists.llvm.org
Fri Apr 29 02:18:05 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: d5ee20fcc91697e8b0d56adb67845806af796b9f
      https://github.com/llvm/llvm-project/commit/d5ee20fcc91697e8b0d56adb67845806af796b9f
  Author: Nikita Popov <npopov at redhat.com>
  Date:   2022-04-29 (Fri, 29 Apr 2022)

  Changed paths:
    M llvm/lib/Transforms/InstCombine/InstCombineAndOrXor.cpp
    M llvm/test/Transforms/InstCombine/or.ll

  Log Message:
  -----------
  [InstCombine] Switch an or of icmps fold to use constant ranges

We can express this fold more naturally when working on the constant
range implementation. This change is not entirely NFC, because the
code now also handles cases that don't match the precise pattern
this previously looked for, e.g. we can omit an add on one of the
ranges.




More information about the All-commits mailing list