llvm-project/llvm/test/Transforms/LoopDistribute
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
..
basic-with-memchecks.ll [LoopUtils] Simplify addRuntimeCheck to return a single value. 2021-10-18 18:03:09 +01:00
basic.ll [test] Fixup tests with -analyze in llvm/test/Transforms 2021-09-04 16:45:51 -07:00
bounds-expansion-bug.ll
convergent-no-cross-partition-checks.ll
crash-in-memcheck-generation.ll
diagnostics-with-hotness.ll
diagnostics.ll
disable_nonforced.ll
disable_nonforced_enable.ll
followup.ll
metadata.ll
no-if-convert.ll
outside-use.ll
pointer-phi-in-loop.ll Recommit "[LAA] Support pointer phis in loop by analyzing each incoming pointer." 2021-09-14 11:19:12 +01:00
pr28443.ll
program-order.ll
scev-inserted-runtime-check.ll [SCEVExpander] Simplify pointer overflow check 2021-09-02 20:15:59 +02:00
symbolic-stride.ll
uncomputable-backedge-taken-count.ll
unknown-bounds-for-memchecks.ll