[all-commits] [llvm/llvm-project] b4d945: Fixing an infinite loop problem in InstCombine

Andy Kaylor via All-commits all-commits at lists.llvm.org
Thu Jul 29 13:05:08 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: b4d945bacdaf2c60dd5fdb119b90cced73c41beb
      https://github.com/llvm/llvm-project/commit/b4d945bacdaf2c60dd5fdb119b90cced73c41beb
  Author: Andy Kaylor <andrew.kaylor at intel.com>
  Date:   2021-07-29 (Thu, 29 Jul 2021)

  Changed paths:
    M llvm/lib/Transforms/InstCombine/InstCombineLoadStoreAlloca.cpp
    M llvm/test/Transforms/InstCombine/memcpy-from-global.ll

  Log Message:
  -----------
  Fixing an infinite loop problem in InstCombine

Patch by Mohammad Fawaz

This issues started happening after
https://github.com/llvm/llvm-project/commit/b373b5990d5991a920c421b21a352e4ccf4c4993
Basically, if the memcpy is volatile, the collectUsers() function should
return false, just like we do for volatile loads.

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




More information about the All-commits mailing list