commit | c2f0af514beb7618660cf8d145fa9e49fb78869c | [log] [tgz] |
---|---|---|
author | Alexander Richardson <alexrichardson@google.com> | Wed Jun 11 10:47:17 2025 -0700 |
committer | GitHub <noreply@github.com> | Wed Jun 11 10:47:17 2025 -0700 |
tree | 9286c2b6b7dabda816628f63a4b74a4cc159ef03 | |
parent | 66f533e7e34d6f6d0e293a67dd54be9e4c240ddd [diff] |
[GISelValueTracking] Add test case for G_PTRTOINT While we can only reason about the index/address, the G_PTRTOINT operations returns all representation bits, so we can't assume the remaining ones are all zeroes. This behaviour was clarified as part of the discussion in https://discourse.llvm.org/t/clarifiying-the-semantics-of-ptrtoint/83987/54. The LangRef semantics of ptrtoint being a full representation bitcast were documented in https://github.com/llvm/llvm-project/pull/139349. Prior to 77c8d214131e951e3d3a07b45a7436f54988d6f3 we were incorrectly assuming known zeroes beyond the index size even if the input was completely unknown. This commit adds a test case for G_PTRTOINT which was omitted from that change. See https://github.com/llvm/llvm-project/issues/139598 Reviewed By: arsenm Pull Request: https://github.com/llvm/llvm-project/pull/139608
Welcome to the LLVM project!
This repository contains the source code for LLVM, a toolkit for the construction of highly optimized compilers, optimizers, and run-time environments.
The LLVM project has multiple components. The core of the project is itself called “LLVM”. This contains all of the tools, libraries, and header files needed to process intermediate representations and convert them into object files. Tools include an assembler, disassembler, bitcode analyzer, and bitcode optimizer.
C-like languages use the Clang frontend. This component compiles C, C++, Objective-C, and Objective-C++ code into LLVM bitcode -- and from there into object files, using LLVM.
Other components include: the libc++ C++ standard library, the LLD linker, and more.
Consult the Getting Started with LLVM page for information on building and running LLVM.
For information on how to contribute to the LLVM project, please take a look at the Contributing to LLVM guide.
Join the LLVM Discourse forums, Discord chat, LLVM Office Hours or Regular sync-ups.
The LLVM project has adopted a code of conduct for participants to all modes of communication within the project.