[llvm] [CodeGen] Avoid sinking vector comparisons during CodeGenPrepare (PR #113158)
Jay Foad via llvm-commits
llvm-commits at lists.llvm.org
Fri Oct 25 02:48:36 PDT 2024
================
@@ -387,6 +387,16 @@ class AMDGPUTargetLowering : public TargetLowering {
MVT getFenceOperandTy(const DataLayout &DL) const override {
return MVT::i32;
}
+
+ virtual bool hasMultiplePredicateRegisters(EVT VT) const override {
+ // FIXME: This is only partially true. If we have to do vector compares,
----------------
jayfoad wrote:
AMDGPU part looks fine. In future we will probably want to address this FIXME by passing in a node, not just a type.
https://github.com/llvm/llvm-project/pull/113158
More information about the llvm-commits
mailing list