[Mlir-commits] [mlir] Revert [mlir][vector] Use vector.broadcast in place of vector.splat (PR #148937)
Andrzej WarzyĆski
llvmlistbot at llvm.org
Tue Jul 15 12:38:41 PDT 2025
banach-space wrote:
Hm , where is this enigmatic commit?
```bash
$ git log -1
commit d67d91a9906366585162cebf292f923a3f28c8a6 (HEAD -> main, origin/main, origin/HEAD)
Author: Sudharsan Veeravalli <quic_svs at quicinc.com>
Date: Wed Jul 16 00:31:33 2025 +0530
[RISCV] Fix issues in ORI to QC.INSBI transformation (#148809)
The transformation done in #147349 was incorrect since we were not
passing the input node of the `OR` instruction to the `QC.INSBI`
instruction leading to the generated instruction doing the wrong thing.
In order to do this we first needed to add the output register to
`QC.INSBI` as being both an input and output.
The code produced after the above fix will need a copy (mv) to preserve
the register input to the OR instruction if it has more than one use
making the transformation net neutral ( `6-byte QC.E.ORI/ORAI` vs
`2-byte C.MV + 4-byte QC.INSB`I). Avoid doing the transformation if
there is more than one use of the input register to the OR instruction.
$ git show a599e60aff0c9981c4173db69e01eada2091cc23
fatal: bad object a599e60aff0c9981c4173db69e01eada2091cc23
```
https://github.com/llvm/llvm-project/pull/148937
More information about the Mlir-commits
mailing list