[all-commits] [llvm/llvm-project] de7a7a: [NFC][ValueTracking]: Remove redundant computeKnow...
Dhruv Chawla via All-commits
all-commits at lists.llvm.org
Mon Jul 24 03:01:09 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: de7a7aa1106d23df71bb535649085db552d38de5
https://github.com/llvm/llvm-project/commit/de7a7aa1106d23df71bb535649085db552d38de5
Author: Dhruv Chawla <44582521+dc03 at users.noreply.github.com>
Date: 2023-07-24 (Mon, 24 Jul 2023)
Changed paths:
M llvm/lib/Analysis/ValueTracking.cpp
Log Message:
-----------
[NFC][ValueTracking]: Remove redundant computeKnownBits call for LoadInst in isKnownNonZero
For load instructions, computeKnownBits only checks the range metadata.
This check is already present in isKnownNonZero, so there is no need to
fall through to computeKnownBits.
This change gives a speed improvement of 0.12-0.18%:
https://llvm-compile-time-tracker.com/compare.php?from=3c6ed559e5274307995586c1499a2c8e4e0276a0&to=78b462d8c4ae079638b728c6446da5999c4ee9f8&stat=instructions:u
Differential Revision: https://reviews.llvm.org/D155958
More information about the All-commits
mailing list