[PATCH] D50642: [IslExprBuilder] Allow 64-bit ints in hasLargeInts()

SAHIL GIRISH YERAWAR via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Aug 13 09:44:59 PDT 2018


cs15btech11044 created this revision.
cs15btech11044 added reviewers: bollu, philip.pfaffe, Meinersbur.
Herald added a subscriber: llvm-commits.

This patch allows for 64-bit integers to be not considered as a large int.

The bug came up because the invalid context was not evaluated properly during Chapel+Polly GSoC effort.


Repository:
  rPLO Polly

https://reviews.llvm.org/D50642

Files:
  lib/CodeGen/IslExprBuilder.cpp


Index: lib/CodeGen/IslExprBuilder.cpp
===================================================================
--- lib/CodeGen/IslExprBuilder.cpp
+++ lib/CodeGen/IslExprBuilder.cpp
@@ -83,7 +83,7 @@
     isl::val Val = Expr.get_val();
     APInt APValue = APIntFromVal(Val);
     auto BitWidth = APValue.getBitWidth();
-    return BitWidth >= 64;
+    return BitWidth > 64;
   }
 
   assert(Type == isl_ast_expr_op && "Expected isl_ast_expr of type operation");


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D50642.160373.patch
Type: text/x-patch
Size: 457 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180813/36c7ad2b/attachment.bin>


More information about the llvm-commits mailing list