[llvm] [SPIR-V] Lower llvm.x.with.overflow intrinsics (PR #95012)
Michal Paszkowski via llvm-commits
llvm-commits at lists.llvm.org
Tue Jun 11 10:21:50 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();
+ }
----------------
michalpaszkowski wrote:
This PR is based on another (PR 94959) which hasn't been merged yet. Once the other PR is merged this one will be rebased and this change will disappear. This was done so that our automated testing combines these changes.
https://github.com/llvm/llvm-project/pull/95012
More information about the llvm-commits
mailing list