diff options
author | Philip Reames <preames@rivosinc.com> | 2023-07-27 11:12:38 -0700 |
---|---|---|
committer | Philip Reames <listmail@philipreames.com> | 2023-07-27 16:25:56 -0700 |
commit | 9cf675923afa73a3dbe575803ebbbe9146701df8 (patch) | |
tree | 08cf16897d9293b812a1f2251dca6db32f06cd91 /flang/lib/Frontend/CompilerInvocation.cpp | |
parent | ef4bf1d1f9e33a1ebea77a37287dc4b359172f93 (diff) | |
download | llvm-9cf675923afa73a3dbe575803ebbbe9146701df8.zip llvm-9cf675923afa73a3dbe575803ebbbe9146701df8.tar.gz llvm-9cf675923afa73a3dbe575803ebbbe9146701df8.tar.bz2 |
[RISCVRVVInitUndef] Remove implicit single use assumption for IMPLICIT_DEF
The code was written with the implicit assumption that each IMPLICIT_DEF either a) the tied operand, or b) an untied source, but not both. This is true right now, but an upcoming change may allow CSE of IMPLICIT_DEFs in some cases, so let's rewrite the code to handle that possibility.
I added an MIR case which demonstrates the multiple use IMPLICIT_DEF. To my knowledge, this is not a reachable configuration from IR right now.
As an aside, this makes the structure a much closer match with the sub-reg liveness case, and we can probably just merge these routines. (Future work.)
Differential Revision: https://reviews.llvm.org/D156477
Diffstat (limited to 'flang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions