[all-commits] [llvm/llvm-project] 7cbb10: [Attributor][FIX] Validate the type for AAValueCon...

Johannes Doerfert via All-commits all-commits at lists.llvm.org
Fri Feb 14 15:23:20 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 7cbb107feb45a58f34199d2da4b84f8670c1c831
      https://github.com/llvm/llvm-project/commit/7cbb107feb45a58f34199d2da4b84f8670c1c831
  Author: Johannes Doerfert <johannes at jdoerfert.de>
  Date:   2020-02-14 (Fri, 14 Feb 2020)

  Changed paths:
    M llvm/lib/Transforms/IPO/Attributor.cpp
    M llvm/test/Transforms/Attributor/range.ll

  Log Message:
  -----------
  [Attributor][FIX] Validate the type for AAValueConstantRange as needed

Due to the genericValueTraversal we might visit values for which we did
not create an AAValueConstantRange object, e.g., as they are behind a
PHI or select or call with `returned` argument. As a consequence we need
to validate the types as we are about to query AAValueConstantRange for
operands.




More information about the All-commits mailing list