Skip to content
Commit f2cfd2a4 authored by Siddharth Bhat's avatar Siddharth Bhat
Browse files

[NFC] [IslNodeBuilder, GPUNodeBuilder] Unify mechanism for looking up replacement Values.

We populate `IslNodeBuilder::ValueMap` which contains replacements for
`llvm::Value`s. There was no simple method to pick up a replacement if
it exists, otherwise fall back to the original.

Create a method `IslNodeBuilder::getLatestValue` which provides this
functionality.

This will be used in a later patch to fix bugs in `PPCGCodeGeneration`
where the latest value is not being used.

Differential Revision: https://reviews.llvm.org/D36000

llvm-svn: 309674
parent 69e90bb0
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment