[llvm-dev] Storing and loading of i1

Haidl, Michael via llvm-dev llvm-dev at lists.llvm.org
Thu Aug 17 05:21:15 PDT 2017


Hi,

I am looking for the canonical way to store i1 values (results from 
compares) to memory and load them back in another function. Is a zext to 
i8 before the store and a trunc to i1 after the load of the stored i8 a 
safe approach?

Cheers,
Michael Haidl


More information about the llvm-dev mailing list