[all-commits] [llvm/llvm-project] f27081: [FIR] Avoid generating llvm.undef for dummy scopin...
Razvan Lupusoru via All-commits
all-commits at lists.llvm.org
Thu Feb 20 18:49:44 PST 2025
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: f27081ba6a12685b403181e51a00a3d6f3360ca5
https://github.com/llvm/llvm-project/commit/f27081ba6a12685b403181e51a00a3d6f3360ca5
Author: Razvan Lupusoru <razvan.lupusoru at gmail.com>
Date: 2025-02-20 (Thu, 20 Feb 2025)
Changed paths:
M flang/lib/Optimizer/CodeGen/CodeGen.cpp
Log Message:
-----------
[FIR] Avoid generating llvm.undef for dummy scoping info (#128098)
Dummy scoping operations are generated to keep track of scopes for
purpose of Fortran level analyses like Alias Analysis. For codegen, the
scoping info is converted to a fir.undef during pre-codegen rewrite.
Then during declare lowering, this info is no longer used - but it is
still translated to llvm.undef. I cleaned up so it is simply erased. The
generated LLVM should now no longer have a stray undef which looks off
when trying to make sense of the IR.
Co-authored-by: Razvan Lupusoru <rlupusoru at nvidia.com>
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list