[all-commits] [llvm/llvm-project] e9ea99: [IR] Replace *all* uses of a constant expression b...
Mahesha S via All-commits
all-commits at lists.llvm.org
Mon Nov 1 21:34:02 PDT 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: e9ea99249623f19563ec0c4c8d6a70fb5c4b670f
https://github.com/llvm/llvm-project/commit/e9ea99249623f19563ec0c4c8d6a70fb5c4b670f
Author: hsmahesha <mahesha.comp at gmail.com>
Date: 2021-11-02 (Tue, 02 Nov 2021)
Changed paths:
M llvm/lib/IR/ReplaceConstant.cpp
M llvm/test/CodeGen/AMDGPU/lower-kernel-lds-constexpr.ll
Log Message:
-----------
[IR] Replace *all* uses of a constant expression by corresponding instruction
When a constant expression CE is being converted into a corresponding instruction I,
CE is supposed to be replaced by I. However, it is possible that CE is being used multiple
times within a parent instruction PI. Make sure that *all* the uses of CE within PI are
replaced by I.
Reviewed By: rampitec, arsenm
Differential Revision: https://reviews.llvm.org/D112717
More information about the All-commits
mailing list