[llvm] [SPIR-V] Support optimization of branching with analyzeBranch/removeBranch/insertBranch functions (PR #110653)

Michal Paszkowski via llvm-commits llvm-commits at lists.llvm.org
Thu Oct 3 21:09:26 PDT 2024


================
@@ -212,9 +203,16 @@ bool SPIRVInstrInfo::analyzeBranch(MachineBasicBlock &MBB,
 // If \p BytesRemoved is non-null, report the change in code size from the
 // removed instructions.
 unsigned SPIRVInstrInfo::removeBranch(MachineBasicBlock &MBB,
-                                      int *BytesRemoved) const {
-  report_fatal_error("Branch removal not supported, as MBB info not propagated"
-                     " to OpPhi instructions. Try using -O0 instead.");
+                                      int * /*BytesRemoved*/) const {
----------------
michalpaszkowski wrote:

Should `BytesRemoved` be commented out?

https://github.com/llvm/llvm-project/pull/110653


More information about the llvm-commits mailing list