[polly] r256267 - Treat inline assembly as a constant in the code generation.
Johannes Doerfert via llvm-commits
llvm-commits at lists.llvm.org
Tue Dec 22 11:08:24 PST 2015
Author: jdoerfert
Date: Tue Dec 22 13:08:24 2015
New Revision: 256267
URL: http://llvm.org/viewvc/llvm-project?rev=256267&view=rev
Log:
Treat inline assembly as a constant in the code generation.
Modified:
polly/trunk/lib/CodeGen/BlockGenerators.cpp
Modified: polly/trunk/lib/CodeGen/BlockGenerators.cpp
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/lib/CodeGen/BlockGenerators.cpp?rev=256267&r1=256266&r2=256267&view=diff
==============================================================================
--- polly/trunk/lib/CodeGen/BlockGenerators.cpp (original)
+++ polly/trunk/lib/CodeGen/BlockGenerators.cpp Tue Dec 22 13:08:24 2015
@@ -102,6 +102,10 @@ Value *BlockGenerator::getNewValue(ScopS
if (isa<Constant>(Old) && !isa<GlobalValue>(Old))
return Old;
+ // Inline asm is like a constant to us.
+ if (isa<InlineAsm>(Old))
+ return Old;
+
if (Value *New = GlobalMap.lookup(Old)) {
if (Value *NewRemapped = GlobalMap.lookup(New))
New = NewRemapped;
More information about the llvm-commits
mailing list