[all-commits] [llvm/llvm-project] c912f8: [InstCombine] Remove false commutativity from proc...

Nikita Popov via All-commits all-commits at lists.llvm.org
Wed Oct 25 02:31:50 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: c912f88c2177f44d9a584b338f94b29a7873e028
      https://github.com/llvm/llvm-project/commit/c912f88c2177f44d9a584b338f94b29a7873e028
  Author: Nikita Popov <npopov at redhat.com>
  Date:   2023-10-25 (Wed, 25 Oct 2023)

  Changed paths:
    M llvm/lib/Transforms/InstCombine/InstCombineCompares.cpp

  Log Message:
  -----------
  [InstCombine] Remove false commutativity from processUMulZExtIdiom() (NFCI)

This fold requires a fold against a constant, which will always be
on the RHS. If the swapped fold actually did trigger, it would
result in a miscompile, because it did not work with the swapped
predicate when swapping operands.




More information about the All-commits mailing list