[llvm] [DAG] Prevent combination on small negative value for vscale (PR #88108)

Paul Walker via llvm-commits llvm-commits at lists.llvm.org
Wed Apr 10 03:58:06 PDT 2024


================
@@ -3847,6 +3847,8 @@ class TargetLowering : public TargetLoweringBase {
   /// legal.  It is frequently not legal in PIC relocation models.
   virtual bool isOffsetFoldingLegal(const GlobalAddressSDNode *GA) const;
 
+  virtual bool isPreferVScaleConst(const APInt Imm) const;
----------------
paulwalker-arm wrote:

I suggest `isPreferredVScaleImm`.

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


More information about the llvm-commits mailing list