Repair a verified behavior in llvm/circt.
Repair a verified behavior in llvm/circt.: a task in OriGent-SFT-Data (Harbor dataset). The FIRRTL dialect treats invalid as a value, but the pad primitive operation has no handling for an invalid input during canonicalization. As a result, CIRCT fails to remove registers that the Scala FIRRTL…
The task
The FIRRTL dialect treats `invalid` as a value, but the `pad` primitive operation has no handling for an invalid input during canonicalization. As a result, CIRCT fails to remove registers that the Scala FIRRTL Compiler (SFC) would remove whenever an invalidated value is padded and used to drive a register.
Part of henryen/OriGent-SFT-Data.