[all-commits] [llvm/llvm-project] 79b55e: [GVN] Fix test for loop load PRE on alloca (NFC)

Nikita Popov via All-commits all-commits at lists.llvm.org
Sun Aug 22 13:31:24 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 79b55e5038324e61a3abf4e6a9a949c473edd858
      https://github.com/llvm/llvm-project/commit/79b55e5038324e61a3abf4e6a9a949c473edd858
  Author: Nikita Popov <nikita.ppv at gmail.com>
  Date:   2021-08-22 (Sun, 22 Aug 2021)

  Changed paths:
    M llvm/test/Transforms/GVN/PRE/pre-loop-load.ll

  Log Message:
  -----------
  [GVN] Fix test for loop load PRE on alloca (NFC)

This test was not modifying the pointer in the loop, so the loads
just ended up as undef, without relation to loop load PRE.

Pass the alloca to the called function, so the memory is
potentially modified.




More information about the All-commits mailing list