llvm-reduce: Simplify virtual register cloning
authorMatt Arsenault <Matthew.Arsenault@amd.com>
Sat, 16 Apr 2022 23:42:23 +0000 (19:42 -0400)
committerMatt Arsenault <arsenm2@gmail.com>
Tue, 26 Apr 2022 17:17:13 +0000 (13:17 -0400)
commit7b57ef670c64e31bbaa19ae9a3acf0d3ed7f5e73
tree94ae0a05dacf6e9fe49deb80eec5f0e746f2cac0
parenta27b9ab391d1e0749e37b7db93b0fae18e23ecf6
llvm-reduce: Simplify virtual register cloning

Just clone all the virtual registers instead of looking for def
operands. This preserves the register values used, simplifying the
rest of the code. This avoids needing to expose the register map to
target code.
llvm/tools/llvm-reduce/ReducerWorkItem.cpp