summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/LiveVariables.cpp
diff options
context:
space:
mode:
authorJulien Lerouge <jlerouge@apple.com>2012-04-28 17:39:16 +0000
committerJulien Lerouge <jlerouge@apple.com>2012-04-28 17:39:16 +0000
commit4a5b4443711edbd4ea06447a76ee3b464df9f22e (patch)
treedff88c7e1c39c1b3b9407469fcb593fce399d082 /llvm/lib/CodeGen/LiveVariables.cpp
parent9de0b35648f2ede749ef54adee302fd7afda0982 (diff)
downloadbcm5719-llvm-4a5b4443711edbd4ea06447a76ee3b464df9f22e.tar.gz
bcm5719-llvm-4a5b4443711edbd4ea06447a76ee3b464df9f22e.zip
Currently __builtin_annotation() only annotates an i32.
i32 __builtin_annotation(i32, string); Applying it to i64 (e.g., long long) generates the following IR. trunc i64 {{.*}} to i32 call i32 @llvm.annotation.i32 zext i32 {{.*}} to i64 The redundant truncation and extension make the result difficult to use. This patch makes __builtin_annotation() generic. type __builtin_annotation(type, string); For the i64 example, it simplifies the generated IR to: call i64 @llvm.annotation.i64 Patch by Xi Wang! llvm-svn: 155764
Diffstat (limited to 'llvm/lib/CodeGen/LiveVariables.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud