llvm-project/llvm/lib
Florian Hahn e844f05397
[LoopUtils] Simplify addRuntimeCheck to return a single value.
This simplifies the return value of addRuntimeCheck from a pair of
instructions to a single `Value *`.

The existing users of addRuntimeChecks were ignoring the first element
of the pair, hence there is not reason to track FirstInst and return
it.

Additionally all users of addRuntimeChecks use the second returned
`Instruction *` just as `Value *`, so there is no need to return an
`Instruction *`. Therefore there is no need to create a redundant
dummy `and X, true` instruction any longer.

Effectively this change should not impact the generated code because the
redundant AND will be folded by later optimizations. But it is easy to
avoid creating it in the first place and it allows more accurately
estimating the cost of the runtime checks.
2021-10-18 18:03:09 +01:00
..
Analysis [Sanitizers] Replaced getMaxPointerSizeInBits with getPointerSizeInBits, which was causing failures for 32bit x86. 2021-10-18 09:31:14 -07:00
AsmParser Reland [IR] Increase max alignment to 4GB 2021-10-06 13:29:23 -07:00
BinaryFormat [llvm][clang][NFC] updates inline licence info 2021-08-11 02:48:53 +00:00
Bitcode [BitcodeAnalyzer] allow a motivated user to dump BLOCKINFO 2021-10-10 10:15:14 +05:30
Bitstream
CodeGen Use llvm::erase_if (NFC) 2021-10-18 09:33:42 -07:00
DWARFLinker Move TargetRegistry.(h|cpp) from Support to MC 2021-10-08 14:51:48 -07:00
DWP [DWP] Refactoring llvm-dwp in to a library part 2 2021-07-22 14:23:29 -07:00
DebugInfo [Symbolize] Demangle Rust symbols 2021-10-16 13:32:17 +02:00
Demangle [Demangle] Extract nonMicrosoftDemangle from llvm::demangle 2021-10-16 13:32:16 +02:00
ExecutionEngine [JITLink][NFC] Add TableManager to replace PerGraph...Builder pass 2021-10-14 23:09:53 +08:00
Extensions
FileCheck [FileCheck] Use StringRef for MatchRegexp to fix crash. 2021-09-01 14:27:14 +02:00
Frontend Move TargetRegistry.(h|cpp) from Support to MC 2021-10-08 14:51:48 -07:00
FuzzMutate [NewPM][FuzzMutate] Fix renaming 'unswitch' to 'simple-loop-unswitch' 2021-07-09 12:24:12 +02:00
Fuzzer
IR [NFC] ProfileSummary: const a bunch of members and fields. 2021-10-18 08:55:06 -07:00
IRReader
InterfaceStub [llvm] Remove redundant calls to str() and c_str() (NFC) 2021-08-30 09:05:05 -07:00
LTO Move TargetRegistry.(h|cpp) from Support to MC 2021-10-08 14:51:48 -07:00
LineEditor
Linker [IR][NFC] Rename getBaseObject to getAliaseeObject 2021-10-06 19:33:10 -07:00
MC [MCPseudoProbe] Clean up includes (NFC) 2021-10-09 10:31:15 +02:00
MCA [MCA] Fix a warning 2021-09-20 09:46:38 -07:00
Object [Object] Simplify RELR decoding 2021-10-16 15:03:14 -07:00
ObjectYAML [WebAssembly] Add import info to `dylink` section of shared libraries 2021-10-15 11:49:16 -07:00
Option [llvm/OptTable] Add named param comment for GroupedShortOption 2021-09-27 11:33:29 -04:00
Passes [VectorCombine] Add option to only run scalarization transforms. 2021-10-15 20:35:58 +01:00
ProfileData [CSSPGO] Rename the field of SampleContextFrame 2021-10-04 19:06:59 -07:00
Remarks
Support Fix cyclic header dependency between Support<->Option due to RISCVISAInfo 2021-10-18 10:06:11 +02:00
TableGen [TableGen] Record::checkRecordAssertions() - Use const-ref iterator in for-range loop. NFCI. 2021-09-17 12:11:53 +01:00
Target [RISCV] Rewrite forwardCopyWillClobberTuple to not assume that there are exactly 32 registers. NFC 2021-10-18 09:57:38 -07:00
Testing
TextAPI [llvm] Use drop_begin (NFC) 2021-09-16 08:46:26 -07:00
ToolDrivers [Type] Avoid APFloat.h include (NFC) 2021-10-09 11:29:26 +02:00
Transforms [LoopUtils] Simplify addRuntimeCheck to return a single value. 2021-10-18 18:03:09 +01:00
WindowsManifest Make WindowsManifestMerger::merge() take a MemoryBufferRef 2021-08-24 16:39:20 -04:00
XRay Fixed some errors detected by PVS Studio 2021-10-09 17:20:04 +02:00
CMakeLists.txt [DWP] Refactoring llvm-dwp in to a library part 2 2021-07-22 14:23:29 -07:00