[llvm] [CodeGenPrepare] Preserve flags (such as nsw/nuw) in SinkCast (PR #89904)

Alex Bradbury via llvm-commits llvm-commits at lists.llvm.org
Wed Apr 24 04:47:24 PDT 2024


================
@@ -0,0 +1,30 @@
+; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
+; RUN: opt -S -passes='require<profile-summary>,function(codegenprepare)' -mtriple=riscv64 %s \
----------------
asb wrote:

You'd hope not. I got this from the and-mask-sink.ll test in the same directory. Removing the profile-summary does indeed cause a crash, from the isFunctionHotINCallGraph call in CodeGenPrepare::_run which is odd.

It seems all tests in tests/Transform/CodeGenPrepare have the same profile-summary requirement.

https://github.com/llvm/llvm-project/pull/89904


More information about the llvm-commits mailing list