[all-commits] [llvm/llvm-project] 2dc45b: [ArgPromotion] Add test for non-willreturn load ho...

Nikita Popov via All-commits all-commits at lists.llvm.org
Fri Jan 28 07:09:11 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 2dc45bf4de9c8af87c019ae958a842f3c9f118fb
      https://github.com/llvm/llvm-project/commit/2dc45bf4de9c8af87c019ae958a842f3c9f118fb
  Author: Nikita Popov <npopov at redhat.com>
  Date:   2022-01-28 (Fri, 28 Jan 2022)

  Changed paths:
    A llvm/test/Transforms/ArgumentPromotion/load-after-non-willreturn-call.ll

  Log Message:
  -----------
  [ArgPromotion] Add test for non-willreturn load hoisting (NFC)

In this case, we have no guarantee that the load is unconditionally
executed, so the argument promotion is not legal.


  Commit: 0ebbf3435ff4c3c141549aaf0f791485c28f06f0
      https://github.com/llvm/llvm-project/commit/0ebbf3435ff4c3c141549aaf0f791485c28f06f0
  Author: Nikita Popov <npopov at redhat.com>
  Date:   2022-01-28 (Fri, 28 Jan 2022)

  Changed paths:
    M llvm/lib/Transforms/IPO/ArgumentPromotion.cpp
    M llvm/test/Transforms/ArgumentPromotion/load-after-non-willreturn-call.ll

  Log Message:
  -----------
  [ArgPromotion] Don't assume all entry block instrs are executed

We should abort this walk if we hit any instruction that is not
guaranteed to transfer.


Compare: https://github.com/llvm/llvm-project/compare/76fd78b4b35a...0ebbf3435ff4


More information about the All-commits mailing list