commit | d2e605c92a53d61df940970371712f09761dbbdd | [log] [tgz] |
---|---|---|
author | Craig Topper <[email protected]> | Thu Aug 10 04:53:49 2023 |
committer | Craig Topper <[email protected]> | Thu Aug 10 04:53:49 2023 |
tree | 6ad568b4743b77c951e07e519035d31baaa47ae4 | |
parent | 0a89bda4a8b756a00985e0965f7686b5ceb43295 [diff] |
[PowerPC] Correct missue of getOperandConstraint in PPCInstrInfo::commuteInstructionImpl getOperandConstraint does not return a bool, it returns an int. It returns -1 if there is no TIED_TO. Additionally, TIED_TO is only set on use operands not defs and it points to the def that the use is tied to. So calling it on operand 0 is guaranteed to return -1. As far as I can tell this code must have been copied from the generic implementation prior to 6aa2744bed0b8.o Unfortunately, this code is not executed in lit tests. I just happened to notice it while looking for other uses of TIED_TO for something I was working on. Reviewed By: nemanjai Differential Revision: https://reviews.llvm.org/D152754
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, or #llvm IRC channel on OFTC.
The LLVM project has adopted a code of conduct for participants to all modes of communication within the project.