[PATCH] R600: Don't promote allocas when one of the users is a ptrtoint instruction
Michel Dänzer
michel at daenzer.net
Sun Oct 5 23:27:30 PDT 2014
On 04.10.2014 00:40, Tom Stellard wrote:
>
> diff --git a/lib/Target/R600/AMDGPUPromoteAlloca.cpp b/lib/Target/R600/AMDGPUPromoteAlloca.cpp
> index 4a6c104..4071fcd 100644
> --- a/lib/Target/R600/AMDGPUPromoteAlloca.cpp
> +++ b/lib/Target/R600/AMDGPUPromoteAlloca.cpp
[...]
> @@ -240,11 +241,20 @@ static void collectUsesWithPtrTypes(Value *Val, std::vector<Value*> &WorkList) {
> WorkList.push_back(User);
> continue;
> }
> +
> + // FIXME: Correctly hanlde ptrtoint instructions.
Typo: 'handle'
--
Earthling Michel Dänzer | http://www.amd.com
Libre software enthusiast | Mesa and X developer
More information about the llvm-commits
mailing list