[llvm] [SPIR-V] Lower llvm.x.with.overflow intrinsics (PR #95012)

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Tue Jun 11 09:50:11 PDT 2024


================
@@ -68,6 +68,11 @@ class SPIRVTargetLowering : public TargetLowering {
   // extra instructions required to preserve validity of SPIR-V code imposed by
   // the standard.
   void finalizeLowering(MachineFunction &MF) const override;
+
+  MVT getPreferredSwitchConditionType(LLVMContext &Context,
+                                      EVT ConditionVT) const override {
+    return ConditionVT.getSimpleVT();
+  }
----------------
arsenm wrote:

Unrelated change 

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


More information about the llvm-commits mailing list