aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/MachineBasicBlock.cpp
diff options
context:
space:
mode:
authorAsher Mancinelli <ashermancinelli@gmail.com>2025-05-22 06:50:25 -0700
committerGitHub <noreply@github.com>2025-05-22 06:50:25 -0700
commit898df4b8ed86f6590e8496c2108c1611dca710ab (patch)
tree74d90cea281cbc2af3ece69475b07ad05ba6e7d6 /llvm/lib/CodeGen/MachineBasicBlock.cpp
parent9cac4bf485e64f7992f2c01bb9517f6379e58164 (diff)
downloadllvm-898df4b8ed86f6590e8496c2108c1611dca710ab.zip
llvm-898df4b8ed86f6590e8496c2108c1611dca710ab.tar.gz
llvm-898df4b8ed86f6590e8496c2108c1611dca710ab.tar.bz2
[flang] Skip opt-bufferization when memory effect does not have an associated value (#140781)
Memory effects on the volatile memory resource may not be attached to a particular source, in which case the value of an effect will be null. This caused this test case to crash in the optimized bufferization pass's safety analysis because it assumes it can get the SSA value modified by the memory effect. This is because memory effects on the volatile resource indicate that the operation must not be reordered with respect to other volatile operations, but there is not a material ssa value that can be pointed to. This patch changes the safety checks such that memory effects which do not have associated values are not safe for optimized bufferization.
Diffstat (limited to 'llvm/lib/CodeGen/MachineBasicBlock.cpp')
0 files changed, 0 insertions, 0 deletions